React - Render State in the User Interface

Tell us what’s happening:

i don’t why my code is not working i even copied the solution but still not working

this.state = {
  name: 'freeCodeCamp'
}

Your code so far

class MyComponent extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      name: 'freeCodeCamp'
    }
  }
  render() {
    return (
      <div>
        { /* change code below this line */ }
        <h1>{this.state.name}</h1>
        { /* change code above this line */ }
      </div>
    );
  }
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0

Challenge Information:

React - Render State in the User Interface

hello and welcome to fcc forum :slight_smile:

  • this is passing on my browser, if its not for you then try disabling any dark theme extensions or alike and try again, better yet try in another browser

happy coding :slight_smile: