Book Image

Create React App 2 Quick Start Guide

By : Brandon Richey
Book Image

Create React App 2 Quick Start Guide

By: Brandon Richey

Overview of this book

If you're a power user and you aren’t happy always reusing default configurations, from previous applications with each new application, then all you need is Create React App (CRA), a tool in the React ecosystem designed to help you create boilerplate code for building a web frontend. This book will help you use CRA to write React programs without significant configuration-related difficulties. With this quick start guide, you will integrate your applications with React to build efficient professional web services.You will learn to design UIs with the features of CRA and template your React applications. By the end of the book, you will be sufficiently skilled to be able to build faster and effective React apps using CRA.
Table of Contents (10 chapters)

Creating a production build

Finally, we're ready to get this all bundled up and ready for a production deployment! Our code is done, our code works, and everything is great; so, what do we do now?

It's simple; we just run yarn build and call it a day! Well, that's most of the process. You see, when you run yarn build, Create React App tries to figure out the best, most efficient way to bundle up everything that you've been working on in your Create React App project and minify/productionize everything that you've writtenevery image and asset that you've added, every library that needs to be includedeverything.

How to create a production build

To create a production build, we just...