Files
2018-10-16 21:32:40 +05:30

528 B

title
title
Access Props Using this.props

Access Props Using this.props


For this solution you need to remember first how to add props to your parent component:

<ReturnTempPassword tempPassWord="xxxxxxxx" />

Once you have the prop set, you can use this.props in your child component.

<p>Your temporary password is: <strong>{this.props.tempPassword}</strong></p>