Last active
March 24, 2019 18:12
-
-
Save alexandrzavalii/bd67034a524ca5133bd30688f4ce7c04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* parent component */ | |
const { lollipops } = this.state; | |
return ( | |
<div> | |
<Dumbo availableShoes={availableShoes} candys={lollipops} /> | |
</div> | |
); | |
/* Dumbo component */ | |
const { candys } = this.props; | |
return ( | |
<div> | |
<FirstChild clothing={this.state.firstChild} sweets={candys} /> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment