Tell us what’s happening:
Describe your issue in detail here.
What is the purpose of the method componentWillMount() ?
**Your code so far**
class MyComponent extends React.Component {
constructor(props) {
super(props);
}
componentWillMount() {
// Change code below this line
console.log("Hello")
// Change code above this line
}
render() {
return <div />
}
};
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Challenge: Use the Lifecycle Method componentWillMount
Link to the challenge: