0.4.0 • Published 3 years ago

reforml v0.4.0

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

reforml

react form defined by yaml

NPM JavaScript Style Guide size gh-action Codacy Badge coverage dependencies

Install

npm i reforml

Usage

https://dipsywong98.github.io/reforml/

import {BaseForm} from 'reforml'
import React, {useState, useMemo} from 'react'

export default () => {
  const [value, setValue] = useState({})
  const fields = useMemo(() => ({
    myField: {
      type: 'text',
      label: 'my field'
    }
  }), [])
  return (
    <BaseForm fields={fields} value={value} onChange={setValue}/>
  )
}

Development

yarn # install dependencies to all packages
yarn start # start the build watcher for reforml
yarn example # start the example
yarn docs # start the development server of documentation

License

MIT © dipsywong98

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago