This is a React application built with Vite and TypeScript. It includes:
- React for building user interfaces
- TypeScript for static type checking
- Vite for fast development and building
- ESLint for code linting
- Node.js (v18 or higher)
- npm or yarn
- Clone the repository or copy the files
- Install dependencies:
npm installTo start the development server:
npm run devThis will start the development server at http://localhost:5173 with hot module replacement.
To build the application for production:
npm run buildThis will create a dist directory with the optimized production build.
To lint the code:
npm run lintTo preview the production build locally:
npm run previewsrc/App.tsx- Main application componentsrc/components/Welcome.tsx- Sample component demonstrating TypeScript usagesrc/main.tsx- Entry point for the React applicationvite.config.ts- Vite configurationtsconfig.json- TypeScript configurationpackage.json- Project dependencies and scripts
- Fast refresh during development with Vite
- Type safety with TypeScript
- Modern ESNext features
- Bundled with ESBuild for fast builds
- CSS support out of the box
- Pre-configured with React and JSX support
- React - A JavaScript library for building user interfaces
- Vite - Next-generation frontend tooling
- TypeScript - Typed JavaScript at any scale
- ESLint - Pluggable JavaScript linter