Created
August 6, 2019 17:09
-
-
Save ovpv/3dc0b5946960920affaf25c595f12cd9 to your computer and use it in GitHub Desktop.
Defining routes file for react ssr
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 Home from "./client/pages/home/home"; | |
import About from "./client/pages/about/about"; | |
import NotFound from "./client/pages/not-found/not-found"; | |
const Routes = [ | |
{ | |
url: "/", | |
exact: true, | |
component: Home | |
}, | |
{ | |
url: "/about", | |
exact: false, | |
component: About | |
}, | |
{ | |
url: "*", | |
exact: true, | |
component: NotFound | |
} | |
]; | |
export const MenuLinks = [ | |
{ | |
url: "/", | |
menuText: "Home" | |
}, | |
{ | |
url: "/about", | |
menuText: "About" | |
} | |
]; | |
export default Routes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment