Re:An all-in-one beginner's guide to modern React applicatio...
by chmike on Friday June 23, 2017 @01:37PM
(#14621047)
Can we use react without npm ?
[ Parent
| on HN ]
Re:An all-in-one beginner's guide to modern React applicatio...
by ch4s3 on Friday June 23, 2017 @01:44PM
(#14621119)
Yes you can! Use a CDN like the example in the docs[1].
I've done this for a static site that has some dom manipulation, and it's quite nice as a jquery replacement in that use case.
[1]https://facebook.github.io/react/docs/installation.html#usin...
Re:An all-in-one beginner's guide to modern React applicatio...
by dabbott on Friday June 23, 2017 @01:43PM
(#14621102)
Yes! You can directly include the React library via a script tag, or however else you want. However, it's definitely most common to use node to bundle your app with webpack, browserify, rollup, etc.