Adventofcode 🎄: Day 10 - Can web browsers read JSX directly?

codejem

Jemima M

Posted on December 10, 2023

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!!

💖 💪 🙅 🚩
codejem
Jemima M

Posted on December 10, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related