eslint error

暂时不想解决

报错:

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 }

~

上一篇:Webpack:前端资源模块化管理和打包工具


下一篇:设置点击鼠标时不跳转