qiniu / formstate-x

Manage state of form with ease.
https://qiniu.github.io/formstate-x
MIT License
33 stars 10 forks source link

Avoid `state.$.$.*` #85

Open nighca opened 2 years ago

nighca commented 2 years ago

If we implement a complex input with:

state = new TransformedState(
  new FormState({
    foo: ...
  })
)

There will be codes like state.$.$.* in the input component, which seems verbose.

Maybe we can avoid that by optimizing API of TransformedState.