Answers for "react state property does not exist on type '{}'"

2

Property 'state' does not exist on type

Can be multiple reasons. Main ones are missing @types/react in Dependencies

try typing this in the terminal (make sure it's the terminal of the right 
folder):

npm install --save-dev @types/react @types/react-dom

--------------------------------------------------------------------------------
Posted by: Guest on June-13-2020
0

typescript property state does not exist

// If "import React from 'react'" does not work try this 
import * as React from 'react';
Posted by: Guest on December-06-2021

Code answers related to "react state property does not exist on type '{}'"

Browse Popular Code Answers by Language