Nov 26, 2019 in React JS
Q:

Why browsers cannot read JSX?

1 Answer

0 votes
Nov 26, 2019

Actually, JSX is not considered as a proper JavaScript. Browsers cannot read them simply. There is always a need to compile the files that contain JavaScript Code. This is usually done with the help of JSX compiler which performs its task prior to file entering the browser. Also, compiling is not possible in every case. It depends on a lot of factors such as the source or nature of file or data.

Related questions

0 votes
Jun 26, 2020 in React JS
  • #reactjs
0 votes
Dec 8, 2020 in React JS
0 votes
0 votes
Nov 26, 2019 in React JS
...