formstate-x
TypeScript icon, indicating that this package has built-in type declarations

3.1.2 • Public • Published

formstate-x

Coverage Status

formstate-x is a tool to help you manage form state, based on MobX. formstate-x provides:

  • Composability: Forms are composition of inputs, complex inputs are composition of simpler inputs. With composability provided by formstate-x, you can build arbitrary complex forms or input components with maximal code reuse.
  • Type safety: With Typescript, no matter how complex or dynamic the form logic is, you can get type-safe result for value, error, validator, etc.
  • Reactive validation: With reactivity system of MobX, every dependency change triggers validation automatically and you can easily react to state change
  • UI-independent: formstate-x only deals with state / data, you can easily use it with any UI library you like

Documentation

You can find full documentation here.

Contributing

  1. Fork the repo and clone the forked repo

  2. Install dependencies

    npm i
  3. Edit the code

  4. Do lint & unit test

    npm run validate
  5. Commit and push, then create a pull request

Dependencies (0)

    Dev Dependencies (18)

    Package Sidebar

    Install

    npm i formstate-x

    Weekly Downloads

    185

    Version

    3.1.2

    License

    Apache-2.0

    Unpacked Size

    2.84 MB

    Total Files

    155

    Last publish

    Collaborators

    • nighca
    • cn0809
    • liaoyu
    • qiniu-pkg
    • lzfee0227