June 21, 2020
What are uncontrolled components?
The Uncontrolled Components are the ones that store their own state internally, and you query the DOM using a ref to find its current value when you need it. This is a bit more like traditional HTML.
In the below UserProfile component, the name input is accessed using ref.
In most cases, it's recommend to use controlled components to implement forms.
June 21, 2020, 21:10
0 views
0 reactions
0 reposts