Can web browsers read JSX directly? #20753
Unanswered
0xprincedev
asked this question in
Discussions
Replies: 1 comment
-
From: https://stackoverflow.com/a/54663149/13249661 Couldn't have said it better myself. Hope this helps, PS: @BlueDream0807 if you were attempting to answer your own question, I don't think thats currently possible though I might be wrong. Glad you were able to figure it out though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Web browsers cannot read JSX directly. This is because they are built to only read regular JS objects and JSX is not a regular JavaScript object
For a web browser to read a JSX file, the file needs to be transformed into a regular JavaScript object. For this, we use Babel
Beta Was this translation helpful? Give feedback.
All reactions