You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
878 B

import React from 'react';
import { Link, NavLink } from 'react-router-dom';
import { RouterDebugger } from './RouterDebugger';
import { RouteDescriptor } from './types';
export const testRoutes: RouteDescriptor[] = [
{
path: '/test1',
// eslint-disable-next-line react/display-name
component: () =>
(
<>
<h1>Test1</h1>
<Link to={'/test2'}>Test2 link</Link>
<NavLink to={'/test2'}>Test2 navlink</NavLink>
</>
) as any,
},
{
path: '/test2',
// eslint-disable-next-line react/display-name
component: () => (
<>
<h1>Test2 </h1>
<Link to={'/test1'}>Test1 link</Link>
<NavLink to={'/test1'}>Test1 navlink</NavLink>
</>
),
},
{
path: '/router-debug',
// eslint-disable-next-line react/display-name
component: () => RouterDebugger,
},
];