Skip to content

Instantly share code, notes, and snippets.

@Nilanth
Created August 5, 2021 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nilanth/3e9d76b7c09414d2458efe6152df78a0 to your computer and use it in GitHub Desktop.
Save Nilanth/3e9d76b7c09414d2458efe6152df78a0 to your computer and use it in GitHub Desktop.
Routes
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