import { Router } from 'react-typesafe-routes' ; import { HomePage , TodoPage } from './pages' ; export const router = Router ( route => ( { home : route ( '/' , { component : HomePage , } ) , todo : route ( 'todo' , { component : TodoPage , } ) , } ) ) ;