The main Form component that is required to wrap all RBF components.
If the component that uses the Form component is a functional component then
only the state props & state update function returned from the useState hook are
required. If you are calling Form component from a class component then you must
pass your local context or this
keyword to
the context
prop.
Generated using TypeDoc
Access the form state within a React Context Api Consumer scope
For example:
<Form state={this.state} context={this}> <FormConsumer> {({state}) => { return <div>{state} is equal {myState}</div>; }} </FormConsumer> </Form>