Which lifecycle method I should use to set the existing value in a form? I can't do <input value={this.props.title} />
because I want to make input as a controlled component.
I can do a promise then after the async method but will this be anti pattern?
componentDidMount() {
this.props.fetchItem(this.itemId)
.then(v=>{this.setState({title: v.title})})
}