| 12345678910111213141516171819202122232425 |
- import React from 'react';
- //import React, {lazy, Suspense} from 'react';
- //import {Route} from 'found';
- //const PokemonShow = lazy((): Promise<any> => import('./pokemon/Show'));
- //const PokemonIndex = lazy((): Promise<any> => import('./pokemon/Index'));
- //const RelayTest = lazy((): Promise<any> => import('../RelayTest'));
- //import NotFound from './NotFound';
- function Pokemon(): React.FunctionComponentElement<void> {
- return <>PokemonComponent</>;
- //return (
- // <>
- // <Suspense fallback={<div>Loading...</div>}>
- // <Route component={RelayTest} exact path={'pokemon/:id'} />
- // <Route component={RelayTest} exact path={'pokemon'} />
- // <Route component={NotFound} />
- // </Suspense>
- // </>
- //);
- }
- export default Pokemon;
|