jsx-eslint/eslint-plugin-react
在 GitHub 查看react/require-optimization warns when using PureRenderMixin.shouldComponentUpdate
Open
#1,019 建立於 2017年1月11日
enhancementhelp wanted
倉庫指標
- Star
- (8,630 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
react/require-optimization reports the following as incorrect even though it follows Facebook's documentation for using PureRenderMixin with ES6 classes (link):
export class MyComponent extends React.Component {
constructor(props) {
super(props);
this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
}
}
I can try submitting a fix if you agree that this is actually a bug