Skip to content

Conversation

@ohansemmanuel
Copy link
Owner

@ohansemmanuel ohansemmanuel commented Oct 28, 2019

What is this PR about? 🤔

Allow the compound component API some more flexibility by receiving a user-defined callback.

Changes 🎁

  • Receive an onClap callback, and make sure it is only invoked after mount.

Before/After 📸

https://advanced-react-patterns-ultrasimplified.netlify.com/compound-components

Other comments 💬

NA

@ohansemmanuel ohansemmanuel mentioned this pull request Feb 15, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants