React Linting: Unclosed Regular Expression
问题 I'm working through the React Tutorial using Codepen. I have the react libraries inlcuded in script tags and have selected the Babel preprocessor but I get a linting error at the JSX closing tag: render() { return ( <button className="square" onClick={() => this.props.onClick()}> {this.props.value} </button> // Error here ); } The error is for an unclosed regular expression. When I check the Codepen for the tutorial itself, it returns the same error but the pen functions. Mine doesn't. Other