Giter Club home page Giter Club logo

formstate-x's Introduction

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

formstate-x's People

Contributors

actions-user avatar dependabot[bot] avatar longbai avatar luncher avatar lzfee0227 avatar nighca avatar zenas-he avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.