对于此解决方案,您需要首先记住如何将道具添加到父组件:
```JSX
Once you have the prop set, you can use this.props in your child component.
HTML
您的临时密码是: {this.props.tempPassword}
```