Skip to content

CodeStix/typed-react-form

Repository files navigation

Typed React form

NPM NPM 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

Install

npm install typed-react-form

Typescript demos

Type-checked field names

type-checked field names

Type-checked custom inputs

type-checked custom inputs

Type-checked object/array fields

type-checked object/array fields

Javascript/typescript React

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

Contributing

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.

License

MIT © Stijn Rogiest