Skip to content

Instantly share code, notes, and snippets.

@alexandrzavalii
Last active March 24, 2019 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandrzavalii/bd67034a524ca5133bd30688f4ce7c04 to your computer and use it in GitHub Desktop.
Save alexandrzavalii/bd67034a524ca5133bd30688f4ce7c04 to your computer and use it in GitHub Desktop.
/* 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