2 ms·
Can we use react without npm ?
by chmike 9y ago
Can we use react without npm ?
- dabbott 9y agoYes! 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.
- ch4s3 9y agoYes 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#using-a-cdn https://facebook.github.io/react/docs/installation.html#usin...