© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
E. ElromReact and Librarieshttps://doi.org/10.1007/978-1-4842-6696-0_12

12. Optimize Your React App

Elad Elrom1  
(1)
Montvale, NJ, USA
 

Optimizing your code is an advanced topic and is needed to ensure we deliver a quality product that lowers resources footprint and loads our app faster. In this chapter, I will highlight some optimizing techniques you should be aware of before you write your first line of code. Topics covered include precaching, lazy loading, code splitting, tree shaking, prefetching, and sprite splitting, to name just a few.

Why Do We Need to Optimize?

As you’ve seen through this book, CRA is a popular way to create a React app. It is set up ...

Get React and Libraries: Your Complete Guide to the React Ecosystem now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.