Answer the question
In order to leave comments, you need to log in
How to include jsx support without webpack?
How can I include support for jsx elements without webpack?
Answer the question
In order to leave comments, you need to log in
You can use babel-standalone . But in general, jsx is usually compiled into a bundle, which is then included as a script. You can do this directly in the browser for yourself, but this approach will not work for a serious project.
PS There is another way, instead of JSX, use HTM , which is close to it in syntax . HTM can work directly in the browser without transpilation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question