暂时不想解决
报错:
3:16 error Component should be written as a pure function react/prefer-stateless-function
4:3 error Useless constructor no-useless-constructor
1 import , { Component } from '';
2
3 export default class MyComponent extends Component {
4 constructor(props) {
5 super(props);
6 }
7
8 render() {
9 return (
10 <div className="title"> This title coming from React Component !!!</div>
11 );
12 }
13 }
~