React - Review Using Props with Stateless Functional Components

Tell us what’s happening:
Describe your issue in detail here.
I stack at this point, can’t pass this test.
Your code so far

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

const Camper = (props)=>{
  return( <p>{props.name}</p>)
  
}

Camper.defaultProps = {
  name : "CamperBot"
};

Camper.propTypes = {
  name : PropTypes.string.isRequried
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50

Challenge: React - Review Using Props with Stateless Functional Components

Link to the challenge:

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