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?