Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.3 KB

forms.md

File metadata and controls

26 lines (15 loc) · 1.3 KB

Forms

Forms are a very important component of almost every React application. They allow users to provide input data to applications.

Depending on the application needs, they might be pretty complex with many different fields which require validation.

Forms in React can be controlled and uncontrolled.

Although it is possible to build any form using only React, there are pretty good solutions out there that help with handling forms such as:

Create abstracted Form component and all the input field components that wrap the library functionality and are adapted to the application needs. You can reuse it then throughout the application.

Form Example Code

Input Field Example Code

You can also integrate validation libraries with the mentioned solutions to validate inputs on the client. Some good options are:

Validation Example Code