So what’s New in Create-React-App v2?

Introducing the new features of Create React App V 2.0: A year of improvement in a single dependency update…

what you see when you run npm start

Create React App is a tool built by developers at Facebook to help you build React applications. It saves you from time-consuming setup and configuration. You simply run one command and create react app sets up the tools you need to start your React project — Guil Hernandez

Create-React-App which is arguably one of the most popular boilerplates of all times with 56,000 ⭐️ on github released her second version (2.0.3) few days ago; with a whole lot of improvements. Even though we all know react does not require build dependencies, it however depends on a lot of important tools to make the magic we see when we run npm start. Some of these tools include Babel, Webpack and Jest and a host of others which handle making code lighter for production, all kinds of testing and helping code to be modular and generally ease the way we code...

Over time, these tools get updated to newer versions and it starts to become a pain to keep up with create-react-app and the new versions of its supporting tools.

So the team of 167+ contributors who dedicated their lives to the maintenance of our lovely boilerplate came up with this very powerful version.

In this article, we shall quickly look at what’s new in create-react-app v 2.0.3.

Share and reuse components

Since boilerplating is all about time-saving, you can use Bit to quickly share the components in any component directory into a reusable collection. Components can then be discovered and used in multiple applications. With CRA v2 this workflow is made even smoother than before.

Updates

The following tools were updated to the latest versions with their relative support and bug fixes.

Babel 7: This newest babel update which has incorporated transpiling shiny new react features like fragments has become compatible with create-react-app 2. yay!

Webpack 4: we all know how fast this new version 4 is and how it intuitively modulates bundles and let us not forget the mode shiny feature. These features are all now supported bug-free on this new create-react-app version.