Answer the question
In order to leave comments, you need to log in
Why doesn't babel compile React code (error: unexpected token)?
I start babel, I try to compile the input file, I write an error in the console that it does not recognize the JSX object:
At the same time, the error appeared out of nowhere, I did not change the config, everything worked fine.
Answer the question
In order to leave comments, you need to log in
const jsx = uh, what, is that a curly brace?
No, it came from your ignorance and laziness. You should read at least something about jsx before you start writing code, so as not to embarrass yourself like this. Change brackets to round ones.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question