How to save the state of the input box in dvajs

now it is recommended to write stateless components, so the question is, how to collect the status values in the input box and pass them to the backend?
although the callback of the Form component can get the final values, it is limited to the form.
now has a rich text editor that is a component, followed by a pop-up component that needs to collect the values of both components.
if you want to collect the state of several components and pass it to the backend, is it possible to dispatch each reducer, to save the state to redux?

Mar.30,2021

the Form you mentioned is a kind of. Another common way of
is to put the value of input into state of dva (that is, redux ), and take it directly from state .

<input value={this.props.obj.input} onChange={e => dispatch({type: 'namespace/setState', payload: {obj: {input: e.target.value}}})} />

that is, take input as a controlled component!

Menu