Description
DataContext.SubmitButton
connects to the DataContext.Context to submit the active state of the DataContext, triggering onSubmit
.
Demos
Standard text
<DataContext.Context.Providervalue={{...defaultContextState,handleSubmit: () => console.log('handleSubmit'),}}><DataContext.SubmitButton /></DataContext.Context.Provider>