Skip to content

Instantly share code, notes, and snippets.

@DaneSirois
Last active September 18, 2018 17:13
Show Gist options
  • Save DaneSirois/0298858e06767e0456942ac998fa62e1 to your computer and use it in GitHub Desktop.
Save DaneSirois/0298858e06767e0456942ac998fa62e1 to your computer and use it in GitHub Desktop.
Compound Components - ex.5
<ShoppingCart direction='vertical' onClick={this.handleItemClick}>
<ShoppingCartItem>Eggs</ShoppingCartItem>
<ShoppingCartItem>Ham</ShoppingCartItem>
<ShoppingCartExpandableItem extendedDetails='Details to show when clicked'>
Bread
</ShoppingCartExpandableItem>
</ShoppingCart>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment