-
-
Save Nilanth/3e9d76b7c09414d2458efe6152df78a0 to your computer and use it in GitHub Desktop.
Routes
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 { lazy } from 'react'; | |
const routes = [ | |
{ | |
path: 'home', | |
component: lazy(() => import('components/Home')), | |
exact: true | |
}, | |
{ | |
path: 'users', | |
component: lazy(() => import('components/Users')), | |
exact: true | |
} | |
]; | |
export default routes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment