Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upjsx Parsing error: Unexpected token do #876
Comments
This comment has been minimized.
This comment has been minimized.
|
You can't put that kind of JavaScript syntax in JSX. Only JS expressions. A |
feross
closed this
Apr 21, 2018
feross
assigned
feross and unassigned
feross
Apr 21, 2018
feross
added
the
question
label
Apr 21, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Jul 20, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
890f2151c2be69c51db72017546d00fd commentedMay 4, 2017
if use do syntax inside jsx https://babeljs.io/docs/plugins/transform-do-expressions/ i get Parsing error: Unexpected token do.
{ do { if (true) { <div></div> } }}