From the course: Building React and Django Apps

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Preparing React code for production

Preparing React code for production

From the course: Building React and Django Apps

Start my 1-month free trial

Preparing React code for production

- [Instructor] When a React app is built and complied for production, it needs to know which browsers will be supported. We can adjust this using the browser list configuration and package JSON. That's lines 23 to 28. Browser's list is used by React Angular and other frameworks, to allow Java script compilers such as Bable and TypeScript, know which JavaScript features should be polyfilled, or are natively supported by browsers. The most modern web browsers will be the fastest to compile production builds for us since there is no need for poly fields or any other transformations. Then we use React's built in build script to create a production build. As you can see, the build didn't take too long, and it resulted in a production-ready React app in the build directory.

Contents