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
};
Hey @kagaidouglas, welcome to the forum.
Unfortunately you have a typo, preventing the challenge to progress.
The property is called propTypes
not PropTypes
.
So in other words:
// from this
Camper.PropTypes = {..}
// to this
Camper.propTypes = {...}
And you should be good to go
More info on the React docs page.
thanks a lot dear God bless you
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.