React - Create a Stateful Component

I am so lost…

class StatefulComponent extends React.Component {
  constructor(props) {
    this.state = {
      name: 'firstName'
  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

this should be the fistName and set value to for exml “Alex”

The state of StatefulComponent should be initialized with a property firstName set to a string.


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.