in React JS by

Why browsers cannot read JSX?

▼ Show 1 Answer

0 votes

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.

React JS
Learn More with Madanswer

Related questions

0 votes
asked Dec 8, 2020 in React JS by SakshiSharma
0 votes
asked Mar 1, 2020 in React JS by RShastri