Router

Router Configuration

Reference: https://reacttraining.com/react-router/web/guides/quick-start

Configure routes in "src/router.js" and add page components to "src/page/*" folder.

src/router.js
// routes config
const routes = [
// System Pages
{
path: '/user/login',
Component: lazy(() => import('pages/dashboard/alpha')),
exact: true,
},
...
]

History Mode (removing /#/ hash from Url)

Don't forget configure rewrites on your server. Read more: https://create-react-app.dev/docs/deployment/

Replace

src\index.js
import { createHashHistory } from 'history'
...
const history = createHashHistory()

With

src\index.js
import { createBrowserHistory } from 'history'
...
const history = createBrowserHistory()