'React' must be in scope when using JSX react/react-in-jsx-scope
snippet in javascript

'React' must be in scope when using JSX react/react-in-jsx-scope

user3632

// This line should be there as shows
import React, { Component }  from 'react';

react must be in scope when using jsx

user4296

Must include "React" in the import line, see line 2.
Import React, { Component } from "react";