react I want to make a request after the first render of a component is called, which life cycle should I use? code example
Example 1: shouldcomponentupdate
shouldComponentUpdate(nextProps, nextState) {
return true;
}
Example 2: component did mmount
componentDidMount()