Render CamperSite

Render CamperSite
0.0 0

#1

Tell us what’s happening:
I want to ask where to render CamperSite, i.e DOM nothing mentioned

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{
    
}
Camper.defaultProps = {
  name: "CamperBot"     
}

CampSite.render()

Your browser information:

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

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


#2

You don’t have to worry about the Campsite render. It is taken care of for you behind the scenes.