Answer the question
In order to leave comments, you need to log in
How to make an input in React without refs and updating the state?
How to implement input in React so as not to update the state of the component every time a new character is entered, while dynamically changing its value to what was entered by the user.
I know about unmanaged forms, but I would like to do without refs.
Those. in fact 2 requirements:
1) input to the input does not pull its state, therefore it does not force it to re-render
2) the value of the input changes to the value entered into it, as it would be if the state was changed during onChange
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question