Review Using Props with Stateless Functional Components HELP

Review Using Props with Stateless Functional Components HELP
0

#1

Tell us what’s happening:

I don’t know why it’s not working

Your code so far


class CampSite extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <Camper/>
      </div>
    );
  }
};
// change code below this line
class Camper extends React.component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <p>{this.props.name}</p>
    )
  }
}
Camper.defaultProps = { name: 'CamperBot' };
Camper.propTypes = { name: PropTypes.string.isRequired};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

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


#2

Lower-case c in component