Creating a Production Build of a React project is complicated, you need great tools.
Webpack is a module bundler. It packs CommonJs/AMD modules.
npm run build
Create React App uses Webpack under the hood.npm run build creates a build directory with a production build of your app.