in React JS by
Q:

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 Dec 8, 2020 in React JS by SakshiSharma
0 votes
asked Mar 1, 2020 in React JS by RShastri
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
+1 vote
asked Apr 12, 2020 in QuickTest Professional (QTP) by amita rallin
0 votes
asked Feb 13, 2022 in OWASP Top 10 Vulnerabilities by SakshiSharma
...