Answer the question
In order to leave comments, you need to log in
Where can I see options for the React form code in conjunction with Redux?
Hello, where can I see code options for the form that will be filled in by the client and send data to the database? Made a form without Redux. Everything is in the state of the component. I was looking for examples, but mostly they use the redux-form component. I want to do it without any components, normal form
<form>
<input type="text" />
<input type="submit" value="submit" />
</form>
Answer the question
In order to leave comments, you need to log in
It is better not to do this, in redux it is recommended to pass data that is reused in other components, this is usually not required for forms.
Well, if you really want to, then create a form entity in redux and dispatch all changes there, just like you do through setState when changing inputs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question