import React from 'react'; import {graphql, QueryRenderer, ReadyState} from 'react-relay'; import {IndexQueryResponse} from '../../../__generated__/IndexQuery.graphql'; import environment from '../../../graphqlEnvironment'; import PokemonShow from './Show'; function PokemonIndex(): React.ReactNode { return ( ): React.ReactNode => { if (error) { return
Error!
; } if (!props) { return
Loading...
; } return ( ); }} variables={{}} /> ); } export default PokemonIndex;