'What are the recommended use cases for `react-hook-form` Controller vs useController?

I read the documentation and went through the examples, but I'm still really confused.

About useController link:

image

About Controller link:

image

Question 1

So, if I'm creating a reusable controlled input on my own, I should implement it with useController and just pass the control prop that the consumer will get from the useForm() call, right?

Question 2

And what is the Controller for? Is it just to use it with 3rd party libraries?

Question 3

Is it always one OR the other? Is there any case where both would be used at the same time?

Question 4

I guess that this sentence made me confused: "This custom hook powers Controller". What does that mean?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source