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

前端 未结 6 1619
-上瘾入骨i
-上瘾入骨i 2020-12-08 09:08

I am an Angular Developer and new to React , This is simple react Component but not working

import react , { Component}  from \'react\';
import         { re         


        
6条回答
  •  死守一世寂寞
    2020-12-08 09:18

    import React, { Component } from 'react';
    

    This is a spelling error, you need to type React instead of react.

提交回复
热议问题