Skip to content

Instantly share code, notes, and snippets.

@ovpv

ovpv/routes.js

Created Aug 6, 2019
Embed
What would you like to do?
Defining routes file for react ssr
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