Skip to content

Instantly share code, notes, and snippets.

@tthew
Created February 16, 2018 14:52
Show Gist options
  • Save tthew/42cbdc5a22f0b87b9c9ad2c70ec54ae3 to your computer and use it in GitHub Desktop.
Save tthew/42cbdc5a22f0b87b9c9ad2c70ec54ae3 to your computer and use it in GitHub Desktop.
<ApiProvider> // attach observables to context
<router>
<blah>
<blah>
{connectApi(<ApiConnectedComponet />) // take context observerables and pass as props to component
</blah>
</blah>
</router>
</ApiProvider>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment