0.2.7 • Published 4 years ago

mobx-hooks-form v0.2.7

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

React form using MobX, hooks and context

Features

  • any path form.a.b1.input
  • array
  • useForm
  • useField
  • no extra rerenders
  • FormContext
  • FieldContext
  • joi validation
  • is field required info
  • typescript
  • explicit props - onChange, onBlur, value
  • debounce
  • submit
  • reset
  • state spy
  • array - defaults/copy-last when adding new record
  • array example - disabled row when empty
  • submitting -> form disabled
  • submitting state
  • debug, debugMobx
  • form error state
  • form autofocus - seems to just work

TODO

  • reimplement with observe()
  • consider removing the debounce feature
  • getValue = computedFn: computedFn unnecesery
  • fix - set path of value which is not in defaultValues
  • values types as the schema
  • see package size in imports
  • example fieldContext currently not working
  • tests
  • CI
  • documentation
  • example in typescript
  • array id
  • accessability - auto focus field
  • submit button - on hover show required list
  • disabled fields logic
  • hidden fields logic
  • connect the example with yarn link
  • optimize package size (tslib)

Develop

  • package built with tsdx
  • to publish use np
  • node 12
0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago