The following code located in a class that extends React.Component
nextState = () => {
this.setState({
state : this.state.state + 1
});
};
However ESLint with airbnb rules catches this and throws the following error:
error Parsing error: Unexpected token =
I would like to keep this syntax as it allows me to avoid binding this
in the constructor.