I am looking at the docs of the react.js and found that input tag with a value cannot be interactive, has to be dealt with the help of state. But there is something called uncontrolled input which need to be dealt with the state. So defaultValue should be used in the uncontrolled input and we can get the value by ref?
<input type="text" value="hello" />
<input type="text" defaultValue="Hello"/>
Please clear my inference on when to use the defaultValue specifically. What is the use case for it