Jestem programistą Angular i nowy w React. To proste reagowanie na komponent, ale nie działa
import react , { Component} from 'react';
import { render } from 'react-dom';
class TechView extends Component {
constructor(props){
super(props);
this.state = {
name:'Gopinath'
}
}
render(){
return(
<span>hello Tech View</span>
);
}
}
export default TechView;
Błąd: „React” musi znajdować się w zakresie, gdy używasz JSX React / React-in-jsx-scope