xxxxxxxxxx
// If "import React from 'react'" does not work try this
import * as React from 'react';
xxxxxxxxxx
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
--------------------------------------------------------------------------------