Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question