React Excersise!

React Excersise!
0

#1

React: Render State in the User Interface

this is my code

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>
    );
  }
};

The rendered h1 header should contain text rendered from the component’s state.

what this issue mean?


#2

I solved my issue! sorry for disturb.