Skip to main content

<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

children

  • Type: React.element
  • Required: True