Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kubk/mobx-form-lite

Lightweight form management for MobX
https://github.com/kubk/mobx-form-lite

forms mobx

Last synced: 10 days ago
JSON representation

Lightweight form management for MobX

Awesome Lists containing this project

README

        


mobx-form-lite

Npm Version
NPM downloads
Tests


Lightweight form management for MobX

### Features:

- ✅ If you know MobX, you already know `mobx-form-lite`. The library is just a set of stores such as `TextField`, `BooleanField`, and helper functions like `isFormTouched`, `isFormValid` that operate on those stores.
- 🛠️ Type-safe, including nested forms. No JSON-based configuration.
- 🪶 Lightweight ([~1 kb](https://github.com/kubk/mobx-form-lite/blob/b1d52f9f604e056dca43707fc0bec752f931b01e/package.json#L24) gzipped) since MobX does all the heavy lifting.
- 🚀 Performant. It avoids unnecessary re-renders, thanks to MobX.
- 🔄 Flexible. Supports all the possible ways of defining MobX store, such as `makeAutoObservable`, `useLocalObservable`, or decorators.

### Installation

```
npm i mobx-form-lite
```

### Documentation

To check out docs, visit [https://kubk.github.io/mobx-form-lite/](https://kubk.github.io/mobx-form-lite/)

### State

The package is close to a major release. If the documentation doesn't answer your questions, please check the unit tests or [create an issue](https://github.com/kubk/mobx-form-lite/issues/new).