Skip to content

What are the recommended use cases for Controller vs useController? #7852

Answered by bluebill1049
cbdeveloper asked this question in Q&A
Discussion options

You must be logged in to vote
  1. yes.
  2. controller is more for a convenient way to inline wrap your component.
  3. no, suits your own need, but I prefer the hook.
  4. feel free to send a PR, if something you recommend to improve. the controller is basically a component version of the hook
    const Controller => useController()

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cbdeveloper
Comment options

@deannashih
Comment options

@bluebill1049
Comment options

Answer selected by cbdeveloper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants