React - Create a Stateful Component

Tell us what’s happening:

Create a Stateful Component

I have been getting the last two test out of the four test wrong.

Your code so far

class StatefulComponent extends React.Component {
  constructor(props) {
    // initialize state here
    this.state = {
      name : "Name"

  render() {
    return (

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

React - Create a Stateful Component

Hello, you need to swap out name with firstName in two places.:smiley:

It worked ! Thanks a lot .

1 Like