D
D
Dmitry2019-04-17 23:01:38
React
Dmitry, 2019-04-17 23:01:38

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>

and redux
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Okhotnikov, 2019-04-18
@ddimonn8080

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.

K
Konstantin Malyarov, 2017-03-01
@Konstantin18ko

win+r -> cmd -> chcp
What does it show?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question