Is it possible to write in React + JSX without Webpack? What cons?
Is it possible to write in React + JSX without Webpack, that all happened in the browser?
June 14th 19 at 18:03
Where you can put your ads about creating code?
What is this encoding?
How to print part of html table?
How to reload the page bypassing the pushState?
How to get a token from Facebook?
How to force Remote Devices in chrome to see the phone?
Wish that the menu was occupied by the desired width?
How to implement the other side?
More answers about
"Is it possible to write in React + JSX without Webpack? What cons?"
June 14th 19 at 18:05
Cons - the browser will have to compile code on the fly, this is a big loss in performance.
Write in JSX allows babel, and not the webpack, so in the example on codepen added a script with babel.
June 14th 19 at 18:07
No. Do it like the vue, and it is not .vue files, and is divided into
and code components
on react (including jsx) you can write without webpack.
commented on June 14th 19 at 18:10
, you can write. "that all happened in the browser" - is unlikely. The same babel still running on the server.
commented on June 14th 19 at 18:13
script babel can be connected to your web page as normal script (i.e. the difference between the connections of babel script or jquery is almost none).
No the server is not necessary.
commented on June 14th 19 at 18:16
June 14th 19 at 18:09
You can, but you need to connect transistor Babel. Here
described a read more
Find more questions by tags