Line 5: 'React' must be in scope when using JSX react/react-in-jsx-scope Search for the keywords to learn more about each error. code example
Example 1: 'React' must be in scope when using JSX react/react-in-jsx-scope
// This line should be there as shows
import React, { Component } from 'react';
Example 2: react must be in scope when using jsx
Must include "React" in the import line, see line 2.
Import React, { Component } from "react";