Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import './index.css';
import React from 'react';
import asyncComponent from '@jaredpalmer/after/asyncComponent';
import Home from './Home';
export default [
{
path: '/',
exact: true,
component: Home,
},
{
path: '/about',
exact: true,
component: asyncComponent({
loader: () => import('./About'),
Placeholder: () => <div>LOADING...</div>,
}),
},
{
path: '/redirect_test',
redirectTo: '/',
pathMatch: 'full',
},
{
path: '**',
component: () => 'Not Found!',
},
];