coding180 icon
Coding180

Why can't browsers read JSX?

Home > Interviews > Javascript


robort - 2022-10-05 05:43:04

Browsers cannot read JSX because they only understand JavaScript objects, and JSX is not one of them.
As a result, we must use a transpiler like Babel to convert the JSX file into a JavaScript object, which is then passed to the browser.


user

Robort Gabriel

Lagos, Nigeria

Freelance Web Developer, Native Android Developer, and Coding Tutor.

Skills
  • UI / UX
  • JavaScript
  • Python
  • PHP
  • Kotlin
  • Java
  • Bootrap
  • Android
  • Laravel