Stateless Functional Components

Tell us what’s happening:

Your code so far


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

Your browser information:

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

Challenge: Review Using Props with Stateless Functional Components

Link to the challenge:

Hi, do you have a question about this exercise?