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

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

 

解决:

import React, {Component} from 'react';

 

R大写

posted @ 2021-08-09 21:54  Redchar  阅读(486)  评论(0编辑  收藏  举报