Accesspropsusingthis.props2

Tell us what’s happening:
he

ReturnTempPassword component should display the password you create as the tempPassword prop within strong

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>
        { /* Change code below this line */ }
<ReturnTempPassword tempPassword="xxxxxxxx" />
        { /* Change code above this line */ }
      </div>
  );
}
};
  **Your browser information:**

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

Challenge: Access Props Using this.props

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

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

ReturnTempPassword component should display the password you create as the tempPassword prop within strong it says cant pass the test

Your code so far

It is a small thing; the extra space between the variable and the closing strong tag should not be there.

Hope this helps

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