React - Use the Lifecycle Method componentWillMount

Tell us what’s happening:

I keep clicking on the run test and i’ts not letting me advance.

Your code so far

class MyComponent extends React.Component {
  constructor(props) {
    super(props);
  }
  componentWillMount() {
    // Change code below this line
console.log("Component");
    // Change code above this line
  }
  render() {
    return <div />
  }
};

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

Challenge: React - Use the Lifecycle Method componentWillMount

Link to the challenge:

It works fine for me, I’ve read on Discord that some people have problems running the run test.

Try opening it in a private window or another browser to see if it happens.

If so, check if you have any plugins or add-ons active in the browser, it is likely that this is the problem.
Sometimes ad blockers or privacy blockers (such as Apple) can cause you problems in some cases.

Using incognito worked, thank you!!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.