VS Code doesn't recognize ::
as valid syntax, as in
render() {
return (
<button
className="btn btn-primary"
onClick={::this.handleClick}>
Click me
</button>
);
}
It highlights ::
with an error [js] identifier expected
and thus invalidates the whole file.
An ideas how to remedy that - make VS Code respect ES6 syntax?