Skip to content

Support for table of parameters for hooks with lots of parameters #25

@speakk

Description

@speakk

Example: useButton hooks takes in a multitude of parameters - many of which are optional.
This makes code much harder to read and reason about.

This issue suggests supporting a table of named parameter being passed to hooks such as useButton, instead.

For example:

useButton({
  onClick = ...,
  onMouseEnter = ...,
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions