12.
What do you need to change about this code to get it to run?
class animal extends React.Component {
render() {
return <h1>Look at the dog: {this.props.dog}</h1>;
}
}
Remove the render method
Add quotes around the return value
Remove this
Change "animal" to "Animal"
Correct: D
To get the code to run you need to change the class name from "animal" to "Animal" to follow the naming convention for React components which should start with an uppercase letter.