Question 1 / 1
A developer writes the following Pure React code:
const ColorCard = React.createClass({
render() {
return React.createElement(
'div',
{ class: 'color-card' },
React.createElement('h2', null, this.props.title),
React.createElement('p', null, `Rating: ${this.props.rating}/5`)
)
}
})
ReactDOM.render(
React.createElement('ColorCard', { title: 'Rad Red', rating: 4 }),
document.getElementById('root')
)
The developer sees no JavaScript errors but the component doesn't render as expected. There are two bugs. What are they?