Last active
February 14, 2018 01:33
-
-
Save philmander/be4c78db2f4d67d26bd4152af21c591a to your computer and use it in GitHub Desktop.
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
import { createRouter } from 'router'; | |
const router = createRouter([ | |
{ | |
path: '/foo:/ | |
view: <MyComponent /> | |
enter: ({ foo }) => store.loadVenue(foo); | |
}, | |
paths: [ '/foo:/', 'bar:/' ], | |
view: <SomethingElse /> | |
], 'my-router'); | |
router.start({ url, history }); | |
<Router use="" /> | |
<Match /> | |
<Link /> | |
when(() => state.initialized, next); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment