Skip to content

#03_01: Compound Components with Callback - #18

Open
ohansemmanuel wants to merge 14 commits into
03from
03_1
Open

#03_01: Compound Components with Callback#18
ohansemmanuel wants to merge 14 commits into
03from
03_1

Conversation

@ohansemmanuel

@ohansemmanuel ohansemmanuel commented Oct 28, 2019

Copy link
Copy Markdown
Owner

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

1 participant