<Provider />
Basic usage
The provider used by components/hooks like <Field />
or Form.useFormContext
.
module Form = ReForm.Make(Lenses)
@react.component
let make = () => {
let form = Form.use(
// ...
)
<Form.Provider value=form>
// Render stuff..
</Form.Provider>
}
Props
~value
- Type:
Form.api
- Required: True
children
- Type:
React.element
- Required: True