Created
February 22, 2021 19:35
-
-
Save dev-cyprium/02aa6fc7cf4bddeccc347b731ae042be to your computer and use it in GitHub Desktop.
Router Context
This file contains hidden or 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
| // 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