The StatefulComponent should initialized to the property firstName

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
class StatefulComponent extends React.Component {
constructor(props) {
  // Only change code below this line
   this.state = {
     name : "firstName"
  // Only change code above this line
render() {
  return (
      <h1> {this.state.firstName} </h1>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0

Challenge: React - Create a Stateful Component

Link to the challenge:

Hello there.

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

am trying to initialize the Stateful Component to the firstName and am finding it difficult.

… assign your name to a property of firstName.

The property name is supposed to be “firstName”, not the value.

Thank you i was able to get it

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