0 votes
in ReactJS by

Why browsers cannot read JSX?

1 Answer

0 votes
by

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
asked Nov 26, 2019 in ReactJS by AdilsonLima
0 votes
asked Nov 5, 2023 in ReactJS by AdilsonLima
...