mobx-react-form-hoc
Simplify mobx-react-form by using a higher order component
Installation
mobx-react-form-hoc is available as an npm package.
npm install mobx-react-form-hoc
Usage
;;;; const LoginForm = { return <form> <fieldset> <label htmlFor=formid> formlabel </label> <input ...form /> <p>formerror</p> </fieldset> </form> ;}; const events = { console; }; const fields = email: label: "eMail" placeholder: "Enter your eMail address" rules: "required|email|string|between:5,25" ; const plugins = dvr: validatorjs; fields plugins events ;
Documentation
please have a look into the documentation of mobx-react-form
Related
Contributing
This project was bootstrapped with Create React App.
Getting started
- Fork the mobx-react-form-hoc repository on Github
- Clone your fork to your local machine
git clone git@github.com:<yourname>/mobx-react-form-hoc.git
- Create a branch
git checkout -b my-topic-branch
- Make your changes and add tests for them, lint, test then push to to github with
git push --set-upstream origin my-topic-branch
. - Visit github and make your pull request.
Scripts
- Install
npm install
oryarn install
- Start developing
npm start
oryarn start
- Test
npm test
oryarn test
- Build
npm run build
oryarn build
- Publish
npm run publish
oryarn publish
License
MIT © Simon Mollweide