Last active
April 9, 2018 15:52
-
-
Save rockymeza/af00db9ea96ba3e7b274695e1507a95b to your computer and use it in GitHub Desktop.
Using TimeProvider with WeekendStatus
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 App = () => ( | |
<TimeProvider> | |
<h1>My App</h1> | |
<GetTime> | |
{({ currentTime }) => <WeekendStatus currentTime={currentTime} />} | |
</GetTime> | |
</TimeProvider> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment