Review Using Props with Stateless Functional Components, camelcase

Tell us what’s happening:

how come propTypes is camel case but PropTypes.string.isRequired isn’t???

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

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.isRequired
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/review-using-props-with-stateless-functional-components