'React' must be in scope when using JSX NEXT JS 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";