DEV Community

Rossano D'Angelo
Rossano D'Angelo

Posted on

React and forms validation

Hi guys, a question: how do you deal with forms and forms validation developing with React? Do you know/use any best practice or any convention?

Discussion (1)

Collapse
webspaceadam profile image
Adam

I don't know about any best practices, not meaning that there aren't some, but i simply don't know them (yet) :).
But what i did in several projects was creating inputfields that were validated.
If a validation in one of the required inputfields was not fulfilled nothing could happen, that would have any effect on the redux store or the api call at the end.