Closed
Description
Hi,
I have a method in class and an error on the sign = at goToStore line definition
the message is
Parsing error: Unexpected token =
I have no warning or error in React, where did I wrong?
export default class Storepicker extends React.Component {
goToStore = (event) => {
event.preventDefault();
console.log('You changed the URL');
// first grab the test from the box
// second we're going to transition from / to /store/:storeIt
}
render() {
return (
<div>
<form className="store-selector" onSubmit={this.goToStore}>
{/* sss */}
<h2>Please Enter A Store</h2>
<input type="text" required placeholder="Store Name" defaultValue={getFunName()} />
<button type="submit" className="btn">
Visit Store <span role="img" aria-label="go">🔥</span>
</button>
</form>
</div>
);
}
}
I lint the code in Vim 8 with Ale
Metadata
Metadata
Assignees
Labels
No labels