D
D
Dark_Scorpion2015-12-05 13:32:34
JavaScript
Dark_Scorpion, 2015-12-05 13:32:34

How to properly receive and process data from forms in React.js?

I need to make a complex calculator for a website. How to correctly receive data from input, radio, checkbox, select, etc. so that one object with data is essentially changed. And depending on the choice of the field and its content in render, show or not show additional fields and calculate the result.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Gushchin, 2015-12-05
@Dark_Scorpion

Use, for example, this library -> https://github.com/erikras/redux-form . It has support for dynamic forms. All fields will in fact be in one object and you can apply your own rendering/calculation logic regarding this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question