Access Props Using this.props Problem

Access Props Using this.props Problem
0

I cant submit this

Your code so far


class ReturnTempPassword extends React.Component {
  constructor(props) {
    super(props);

  }
  render() {
    return (
        <div>
            { /* change code below this line */ }
            <p>Your temporary password is: 
            <strong> {this.props.tempPassword}</strong></p>
            { /* change code above this line */ }
        </div>
    );
  }
};

class ResetPassword extends React.Component {
  constructor(props) {
    super(props);

  }
  render() {
    return (
        <div>
          <h2>Reset Password</h2>
          <h3>We've generated a new temporary password for you.</h3>
          
          <h3>Please reset this password from your account settings ASAP.</h3>
          <ReturnTempPassword tempPassword='12345678898'/>
          

          { /* change code above this line */ }
        </div>
    );
  }
};

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/access-props-using-this-props

Spaces aren’t expected after the opening <strong> tag.

If you want to add a space before the rendered password, don’t put the <strong> element in a new line.

1 Like

Thanks man . Just a silly typo.