Create React App 2.0 Released: New Features and Upgrade Guide
Create React App 2.0, launched on October 1, updates core tools like Babel, Webpack, and Jest, adds Sass, CSS Modules, SVG components, optional Service Workers, and provides a clear migration path for both new and existing projects, while supporting modern browsers and optional polyfills.
On October 1, Create React App 2.0 was officially released, bringing updates to core tooling such as Babel 7, Webpack 4, and Jest 23, as well as new features like Sass support, CSS Modules, SVG as React components, and optional Service Workers.
The update also introduces smarter code‑splitting with native import() , drops support for Node 6, adds optional polyfills for older browsers, and provides a smaller CSS bundle for modern‑only targets.
To start a new project, simply run create-react-app my-app which now uses the 2.0 template by default. Existing non‑ejected projects can be upgraded by changing the react-scripts version in package.json to 2.0.3 , then running npm install (or yarn ).
After upgrading, the first npm start will prompt for supported browsers; accepting the defaults generates smaller CSS bundles for modern browsers. If issues arise, consult the release notes for detailed migration guidance.
For ejected projects, the recommended path is to revert the ejected commit, upgrade the scripts, and re‑eject if needed. The full changelog and migration details are available in the GitHub release notes.
UC Tech Team
We provide high-quality technical articles on client, server, algorithms, testing, data, front-end, and more, including both original and translated content.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.