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

The Solution to 'React' must be in scope when using JSX react/react-in-jsx-scope? is


The import line should be:

import React, { Component }  from 'react';

Note the uppercase R for React.

~ Answered on 2017-03-07 05:41:33


Most Viewed Questions: