DEV Community

Anil Kushwaha
Anil Kushwaha

Posted on

Why can’t browsers read JSX?

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.

Top comments (1)

Collapse
 
dance2die profile image
Sung M. Kim • Edited

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 😃.