E
E
Erik Mikoyan2020-05-01 13:27:49
JavaScript
Erik Mikoyan, 2020-05-01 13:27:49

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

1 answer(s)
Y
Yustas Alexu, 2020-05-01
@erik_mikoyan

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 question

Ask a Question

731 491 924 answers to any question