在写react 组件的过程中突然报错:'React' must be in scope when using JSX react/react-in-jsx-scope
查找了下导致的原因:
import react, {Component} from 'react';
react 应该大写,这里小写导致错误;
在写react 组件的过程中突然报错:'React' must be in scope when using JSX react/react-in-jsx-scope
查找了下导致的原因:
import react, {Component} from 'react';
react 应该大写,这里小写导致错误;