@doodl/react-forms

1.3.3 • Public • Published

Each client must be must have a fields array that has an object of { component: Component, props: { value: "foo", name: "bar"} }

props can have { required: true || false, callbacks: [String] }

callbacks should be passed in by the form loader. If you want something to be called on every instantiation of a certain field you can pass in a string key for that field and hook. If you want it on only certain instantiations the key will need to be sent via the backend, something like { uploadField: { callbacks: ["afterprocess" => "doFooBar"] } }

!Differences between implementations!

The graphql loader does not handle redirects - could create some default apollo middleware for this

Readme

Keywords

Package Sidebar

Install

npm i @doodl/react-forms

Weekly Downloads

8

Version

1.3.3

License

ISC

Unpacked Size

129 kB

Total Files

99

Last publish

Collaborators

  • bencarson