Input background error report

bundle.js:176418 Warning: A component is changing an uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlle.

Mar.10,2021

The reason for this is the problem of controlled and uncontrolled components. You initially set the value of value to undefined.
so change it to:

<input onChange={e => handleChange('user', e)} value={this.state.data.name || ''} />
Menu