<input type="text" className="project__config__element__text" value={this.state.name} onChange={this.nameChangeHandler.bind(this)} />
static getDerivedStateFromProps(props, state){
if(props.project){
return {...state, name: props.project.name};
}
return state;
}
nameChangeHandler(e){
const newName = e.target.value;
console.log(newName);
this.setState({
name: newName
})
}