„React” musi być w zakresie przy użyciu JSX React/React-in-JSX-SCOPE
// This line should be there as shows
import React, { Component } from 'react';
Cooperative Chimpanzee
// This line should be there as shows
import React, { Component } from 'react';
//React js throws This error, when either we forget to include React in our script
or make a spelling mistake.
//Wrong way
import react from 'react'
//Correct way
import React from 'react'
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
Must include "React" in the import line, see line 2.
Import React, { Component } from "react";