The React team primarily recommends these solutions:
If you’re learning React or creating a new single-page app, use Create React App.
+ Create ReactJs app
npx create-react-app my-reactjs-app
+ Run for develop
cd my-reactjs-app
npm start
+ Production build
npm run build
# install static server
# npm install -g serve
serve -s build
Dockerize Production React.js
docker-compose up
Access by
http://localhost:6969
If you're finding modern toolset for create reactjs project, Use Vite - https://vitejs.dev/ (Next Generation Frontend Tooling - Get ready for a development environment that can finally catch up with you.)
If you’re building a server-rendered website with Node.js, try Next.js.
If you’re building a static content-oriented website, try Gatsby.
If you’re building a component library or integrating with an existing codebase, try More Flexible Toolchains.