Property 'state' does not exist on type 'FetchPeriod'
One of possible causes of the problem is missing the React type definitionsTherefore you can try to install them:
npm install --save-dev @types/react @types/react-dom
Without the types installed, TS can't properly infer the props needed for JSX elements.