Review Using Props with Stateless Functional Components Test run issue

Hi there! I cannot start the test. I tried to run test with mouse, from keyboard but nothing helps.!I have done lessons above and below. Only this lesson does not run.
11%20PM|531x236

Can you upload the screenshot again? What you tried to upload is not displaying.

The screenshot is not necessary. The "run " is not working.

Can you post the code you are using for the challenge?

class CampSite extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <Camper name='CamperBot'/>
      </div>
    );
  }
};
// change code below this line

class Camper extends React.Component{
  constructor (props){
    super(props);
  }
  render(){
    return(
      <div>
      <p>{this.props.name}</p>
      </div>
    )
  }

}
Camper.propTypes = {
  name: PropTypes.string.isRequired
};
Camper.defaultProps = {
  name = "CamperBot"
};

This is my code

You have a syntax error above. How do you assign a value to an object property?

1 Like

Oh God… Thank you!