Last active
October 10, 2017 23:42
-
-
Save danny-andrews/c5f68fa6ea00e5362996e22ea90c045c 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
const LuckyNumber = ({ component: Component }) => <Component number={Math.random()} />; | |
const AppBody = ({number}) => <div>{message}: {number}!</div>; | |
// How do I get the message prop to AppBody? 🤔🤔🤔 | |
const App = () => <LuckyNumber component={AppBody} />; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment