Skip to content

Instantly share code, notes, and snippets.

@mcjcloud
Created July 10, 2020 06:44
Show Gist options
  • Save mcjcloud/87a2f69f628212fe291db65862c5b2c5 to your computer and use it in GitHub Desktop.
Save mcjcloud/87a2f69f628212fe291db65862c5b2c5 to your computer and use it in GitHub Desktop.
Asterisk Medium Article: routes.ts
import { RouteProps } from "react-router-dom"
import HomePage from "./pages/HomePage"
import TodoPage from "./pages/TodoPage"
const routes: RouteProps[] = [
{ path: "/", component: HomePage, exact: true },
{ path: "/todo", component: TodoPage },
]
export default routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment