Browsers can only read JavaScript objects but JSX in not a regular JavaScript object. Thus to enable a browser to read JSX, first, we need to transform JSX file into a JavaScript object using JSX transformers like Babel and then pass it to the browser.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
Interesting stuff, Anil.
I'd love to read more in-depth why JSX is not a JS object and how the transformation occurs in future blog posts (if you have time ;) )
Update
Never mind. I saw the follow up post 😃.
What is React with JSX, and how are JSX and Babel related?
Anil Kushwaha ・ 1 min read