Reputation: 143
Can I do everything with react.js just using CDN libraries, without any installations at all ?
For example can I always use JavaScript libraries like this?
<script src="https://cdn/X.js"></script>
const X = window.X;
Upvotes: 1
Views: 3615
Reputation: 8436
Yes, this is absolutely possible, and there are loads of resources. It's no different from building any other JS application on a given framework:
BUT... there's a lot to be said for the current React development ecosystem that makes the build tooling (i.e. Babel, Webpack, ESLint, Prettier, Glamorous, etc.) very enticing. And the use of JSX is an incredible advantage, for the sake of quick prototyping alone, which you will not be able to utilize if you can't build. All in all, building out a comfortable, custom development environment can take time and be pain, however the ROI is tangible. Which is why I'd suggest CRA:
Upvotes: 3
Reputation: 2087
No,not a good idea.Your application performance drops.You will not able to use npm module features,if you don't install NPM. Make use of create-react-app or react-boilerplate which ships some great features and easy to setup.
Upvotes: -1