‘React’ must be in scope when using JSX on “./src/App.js”

I didn’t write a single line of code, just generated via npm. When I want to run “npm start” I get this error:
enter image description here

Here is the autogenerate code:

import logo from './logo.svg';
import './App.css';

function App() {
  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reload.
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header>
    </div>
  );
}

export default App;

I want to compile the site using create-react-app. It is my first react app