jsx-eslint/eslint-plugin-react
Auf GitHub ansehenreact/require-optimization warns when using PureRenderMixin.shouldComponentUpdate
Open
#1.019 geöffnet am 11. Jan. 2017
enhancementhelp wanted
Repository-Metriken
- Stars
- (8.630 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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