npm run build or yarn build
Creates a production application in the build folder . It correctly binds React in production mode and optimizes assembly for better performance.
npm run build creates a npm run build directory with the production build of your application. Set up your favorite HTTP server so that your site visitor serves index.html and requests for static paths such as /static/js/main.<hash>.js are presented with the contents of the file /static/js/main.<hash>.js .
source: create-react-app
source share