Last active
January 27, 2016 21:40
-
-
Save timdorr/ce0ef31283771f52ddca to your computer and use it in GitHub Desktop.
An idea for a new kind of router in React.
This file contains 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 App from 'components/App' | |
import Page1 from 'components/Page1' | |
import Page2 from 'components/Page2' | |
import Tab1 from 'components/Tab1' | |
import Tab2 from 'components/Tab2' | |
export default const routes = ( | |
<App path="/"> | |
<Page1 path="page1"> | |
<Tab1 path="tab1" /> | |
<Tab2 path="tab2" /> | |
</Page1> | |
<Page2 path="page2"> | |
<Tab1 path="tab1" /> | |
<Tab2 path="tab2" /> | |
</Page2> | |
</App> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment