DEV Community

Jemima M
Jemima M

Posted on

Adventofcode πŸŽ„: Day 10 - Can web browsers read JSX directly?

Can web browsers read JSX directly?

Answer:
No, JSX isn't a standard JavaScript object. The file requires transformation into a conventional JavaScript object, and for this we use Babel.

What is Babel?

Babel is like a translator for JavaScript. It helps developers write code using the latest JavaScript features that might not work everywhere. When you use Babel, it takes your modern code and turns it into a version that works on all kinds of browsers and systems. It's especially handy for things like JSX in React, making sure your code is understood by the browsers.

I hope that this has helped! In the meantime....KEEP CODING!!

Top comments (0)