MENU
Production Build
After you have finalized your code and are ready for deployment to production, remember to switch to production-ready versions of React:
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>Most modern build tools (Vite, or the now-deprecated Create React App) provide a single command to create an optimized production build:
| npm run build |