Skip to content

Instantly share code, notes, and snippets.

@rockymeza
Last active April 9, 2018 15:52
Show Gist options
  • Save rockymeza/af00db9ea96ba3e7b274695e1507a95b to your computer and use it in GitHub Desktop.
Save rockymeza/af00db9ea96ba3e7b274695e1507a95b to your computer and use it in GitHub Desktop.
Using TimeProvider with WeekendStatus
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