Tell me how to correctly write the values in this.state from this.props before rendering the component, I run this.props to for in and write them in this.state so that when rendering, the data from this.props are displayed in the component, everything works but issues warning in the console Uncontrolled Components do not throw a link to the docks, already watched.
constructor(props) { super(props); this.state = { name: '', surname: '', email: '', phone: '' } } componentDidMount() { for(let key in this.props){ if(this.props[key] != this.state[key]){ this.setState({[key]: this.props[key]}); } } }