Render an instance of the Welcome component in the parent component App. Here, give Welcome a prop of name and assign it a value of a string

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

  **Your code so far**

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

}
render() {
  return (
      <div>
          { /* Change code below this line */ }
          <Welcome />
          { /* Change code above this line */ }
      </div>
  );
}
};

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

}
render() {
  return (
      <div>
        { /* Change code below this line */ }
        <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="12345678" />
        <p>Hello, <strong></strong>!</p>
        { /* 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/102.0.5005.61 Safari/537.36

Challenge: Access Props Using this.props

Link to the challenge:

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