Last active
October 10, 2017 22:52
-
-
Save danny-andrews/a0af4993396a27a5eadc1234c6087ec4 to your computer and use it in GitHub Desktop.
React Abstractions: FaCC
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 = ({ children }) => children({ number: Math.random() }); | |
const App = () => ( | |
<LuckyNumber> | |
{({number}) => <div>Your number is: {number}!</div>} | |
</LuckyNumber> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment