Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.67 KB

File metadata and controls

52 lines (38 loc) · 1.67 KB

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.

Getting Started

Clone the Repository

git clone https://github.com/dummyrepos/dockerreactexample.git
cd dockerreactexample

Install Dependencies

npm install

Run Locally (Development Mode)

npm run dev

Access at http://localhost:5173

Build Distribution

npm run build

Run Using Distribution (Production Mode)

npm run preview

Access at http://localhost:4173

Alternative: Serve Distribution with Static Server

npm install -g serve
serve -s dist