CodeStix/typed-react-form

Repository files navigation

NPMNPM Size

A completely type-checked form builder for React with Typescript

  • ✔️ Type-checked: Make less errors, even field names are strongly typed.
  • 🤔 Simple: A well documented, intuitive and easy to understand api.
  • 🔥 Fast: Only rerenders the fields that change if used correctly. This allows you to create huge forms.
  • 📦 Pretty Small: NPM Size
npm install typed-react-form

type-checked field names

type-checked custom inputs

type-checked object/array fields

This library is built from the ground up for React with typescript, but it also works with with vanilla React, without enforced type checking.

Contributions are welcome.

  1. Clone this repo.
  2. Install deps using yarn. Yarn is required because of the resolutions field in package.json, npm does not support this.
  3. Run yarn start, this will watch source files in src/ and rebuild on change.
  4. Open a new terminal and navigate to testing/, run yarn and yarn start to start the testing application.
  5. Done! When you edit source code, it will be rebuilt and update the testing application.

MIT © Stijn Rogiest