Tell us what’s happening:
I keep running into lessons that have, “Build error, open your browser console to learn more.” on them before I even start. What should I do/ how do I fix?
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 {
rendor() {
return(
<div>
<p>{this.props.name}</p>
</div>
)
}
}
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/85.0.4183.121 Safari/537.36
.
Challenge: Review Using Props with Stateless Functional Components
Link to the challenge: