Open hhsadiq opened 7 years ago
In application, the forms are changing uncontrolled input of type text to controlled. Here is error screenshot.
It can be fixed if we add default values in render(). For example in Register.js
Change this
const email = this.props.email; const password = this.props.password; const username = this.props.username;
to
const email = this.props.email || ''; const password = this.props.password || ''; const username = this.props.username || '';
In application, the forms are changing uncontrolled input of type text to controlled. Here is error screenshot.
It can be fixed if we add default values in render(). For example in Register.js
Change this
to