Skip to content

Instantly share code, notes, and snippets.

@dev-cyprium
Created February 22, 2021 19:35
Show Gist options
  • Select an option

  • Save dev-cyprium/02aa6fc7cf4bddeccc347b731ae042be to your computer and use it in GitHub Desktop.

Select an option

Save dev-cyprium/02aa6fc7cf4bddeccc347b731ae042be to your computer and use it in GitHub Desktop.
Router Context
// File App.js
const RouterContext = createContext({
route: "/",
push: () => {}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment