Lightweight form management for MobX
- ✅ If you know MobX, you already know
mobx-form-lite
. The library is just a set of stores such asTextField
,BooleanField
, and helper functions likeisFormTouched
,isFormValid
that operate on those stores. - 🛠️ Type-safe, including nested forms. No JSON-based configuration.
- 🔄 Flexibility. No need to extend your stores from the library's classes.
- 🪶 Lightweight (~1 kb gzipped) since MobX does all the heavy lifting.
- 🚀 Performant. It avoids unnecessary re-renders, thanks to MobX.
npm i mobx-form-lite
To check out docs, visit https://kubk.github.io/mobx-form-lite/
The package is close to a major release. If the documentation doesn't answer your questions, please check the unit tests.