0 votes
in ReactJS by
Can web browsers read JSX directly?

1 Answer

0 votes
by

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

Related questions

0 votes
0 votes
asked Nov 26, 2019 in ReactJS by AdilsonLima
0 votes
asked Nov 4, 2023 in ReactJS by AdilsonLima
...