React - Form
Table of Contents
About
HTML form elements work a little bit differently from other DOM elements in React, because form elements naturally keep some internal state.
Articles Related
State controller
- React - Controlled Component: The state is controlled by React
- React - Uncontrolled Component (DOM State): The state is controlled by the DOM
Element
The react forms components input, textarea, select all accept a value attribute that is used to implement a controlled component.
Library
Library try to help:
- Getting values in and out of form state
- Validation and error messages
- Handling form submission
List:
-
- Formik is built on the same principles of controlled components and managing state
- https://github.com/rjsf-team/react-jsonschema-form - form from json