What is the difference between React and ReactDOM from a CDN?
React is the core library that defines components and elements. ReactDOM is the package that connects React to the real DOM. You need both to render anything in the browser.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in What Is a CDN and Why Does React Use One?
CDN stands for Content Delivery Network. In React, it refers to loading the React and ReactDOM libraries from a remote server by adding script tags, instead of installing them locally with npm.
Because it is the fastest way to start writing React. You add a script tag and React is available immediately, with no build tools or installation. It keeps the focus on learning React concepts.
No. The CDN approach is for learning. Production apps use a bundler to minify code, tree-shake unused parts, and control caching, none of which you get with a raw CDN script tag.
Still have questions?
Browse all our FAQs or reach out to our support team
