Hi. I was attempting to do the task on here, but when I went to put handleChange(event) { this.setState({ input: event.target.value }); }
it gives me this error:
“unexpected token” almost always means that you have mismatched quotes, parentheses, brackets, etc. The error is probably at or near line 8, position 24. It looks like your handleChange function probably doesn’t have it’s closing }, but that’s a guess without the code.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Methods (handleChange) are not supposed to go within the constructor
For future posts, if you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.