{"repo":"nicolaslopezj/simple-react-form","free":true,"listed":false,"github":"https://github.com/nicolaslopezj/simple-react-form","clone":"git clone https://github.com/nicolaslopezj/simple-react-form.git","description":"The simplest way to handle forms in React","language":"TypeScript","stars":230,"topics":["react","meteor","form","react-native","schemas"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Simple React Form Simple React Form is the simplest way to handle forms in React. It helps you make reusable form components in React and React Native. This is just a framework, you must create the form components or install a package with fields that you will use. To use with React Native, see the dedicated section Features - Minimal API with Form and Field . - Works with React and React Native. - Full TypeScript definitions. - Controlled or uncontrolled forms. - Create your own field components. See API.md for the complete API reference. Installation Install the base package Example Contributions - simple-react-form-material-ui Material UI set of fields. - simple-react-form-bootstrap Bootstrap set of fields. Docs Using with state In this example, the current value of the form will be stored in a state variable using useState . Using without state In this example, the current value of the form will be stored inside the Form component and passed in the onSubmit function. The difference on this is that the state prop does not change over time. Field Types React Simple Form is built from the idea that you can create custom components easily. Basically, a field type is a component that receives a value prop and an onChange handler. It must render the value and call onChange with the new value whenever it changes. Creating the field type You must create a React component. You can view the full list of props here. React Native In React Native the API is the same, but wrap the form","default_branch":null,"files":null,"tree":[],"storefront":"/r/nicolaslopezj","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nicolaslopezj/simple-react-form/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}