Pokemon.tsx 770 B

12345678910111213141516171819202122232425
  1. import React from 'react';
  2. //import React, {lazy, Suspense} from 'react';
  3. //import {Route} from 'found';
  4. //const PokemonShow = lazy((): Promise<any> => import('./pokemon/Show'));
  5. //const PokemonIndex = lazy((): Promise<any> => import('./pokemon/Index'));
  6. //const RelayTest = lazy((): Promise<any> => import('../RelayTest'));
  7. //import NotFound from './NotFound';
  8. function Pokemon(): React.FunctionComponentElement<void> {
  9. return <>PokemonComponent</>;
  10. //return (
  11. // <>
  12. // <Suspense fallback={<div>Loading...</div>}>
  13. // <Route component={RelayTest} exact path={'pokemon/:id'} />
  14. // <Route component={RelayTest} exact path={'pokemon'} />
  15. // <Route component={NotFound} />
  16. // </Suspense>
  17. // </>
  18. //);
  19. }
  20. export default Pokemon;