show some message to user when component will mount in react code example
Example 1: shouldcomponentupdate
shouldComponentUpdate(nextProps, nextState) {
return true;
}
Example 2: component did mmount
componentDidMount()
shouldComponentUpdate(nextProps, nextState) {
return true;
}
componentDidMount()