Tell us what’s happening:
I passed this test in FCC but cannot get the required output in codepen . Wonder what I am missing behind the hood in codepen? My codepen file link for this challenge is : [https://codepen.io/meeramenon07/pen/wvwqMbJ]
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 => (<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/76.0.3809.132 Safari/537.36
.
Link to the challenge: