React - Review Using Props with Stateless Functional Components

Tell us what’s happening:
Describe your issue in detail here.

Its a disaster the day I choose the most stupid and filthy shit background to become a coder, I think cleaning a washroom is better than this ass filth

class CamperSite extends React.Component {
  constructor(props) {
    super(props)
  }
  render() {
    return(
      <div>
      <Camper />
      </div>
    );
  };
};
// Change code below this line
const Camper = props => <p>{props.name}</p>;
  
Camper.defaultProps = {
  name:"CamperBot"
};
Camper.PropTypes = {
  name: PropTypes.string.isRequired
};

Your browser information:

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

Challenge: React - Review Using Props with Stateless Functional Components

Link to the challenge:

Hey,
Don’t be discouraged if you don’t get it in the first attempts. Struggle is part of the learning process, so you need to enjoy it.

In your code, you got two spelling errors (Try to solve it)

A simple error like this can get you stuck for a while; however, at the same time you can learn a lot during the process

Cheers

1 Like

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