react-spa-quickstart
v1.0.6
Published
A quickstart template for React Single Page Applications using Vite, Tailwind CSS, and TypeScript. Ready for Shadcn UI and Radix UI components.
Downloads
12
Maintainers
Readme
React SPA Quickstart
A modern, production-ready template for React Single Page Applications using Vite, Tailwind CSS, and TypeScript.
Features
- ⚡️ Vite - Lightning fast build tool
- 🎨 Tailwind CSS v4 - Modern utility-first CSS
- 📖 Shadcn UI compatibility - Copy and paste components
- 🧩 Radix UI primitives ready for use
- 💎 TypeScript - Type safety
- 🔍 ESLint - Modern flat configuration
- 📚 CSS Variables - Dark mode ready
Getting Started
Use the CLI to create a new project:
npx react-spa-quickstart my-app
cd my-app
npm run devOr clone this repository:
git clone https://github.com/JoeEverest/react-spa-quickstart.git my-app
cd my-app
npm install
npm run devAvailable Scripts
npm run dev- Start development servernpm run build- Build for productionnpm run lint- Lint your codenpm run preview- Preview production build locally
Project Structure
/
├── public/ # Static assets
├── src/
│ ├── components/ # React components
│ │ └── ui/ # UI components (Shadcn/Radix)
│ ├── lib/ # Utility functions
│ ├── App.tsx # Main application component
│ ├── index.css # Global styles
│ └── main.tsx # Application entry point
└── ...config filesExpanding the ESLint configuration
For production applications, you can enable type-aware lint rules:
export default tseslint.config({
extends: [
...tseslint.configs.recommendedTypeChecked,
// For stricter rules:
// ...tseslint.configs.strictTypeChecked,
// For stylistic rules:
// ...tseslint.configs.stylisticTypeChecked,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})License
MIT © Joe Everest
