The template features the perfect stack and structure for building apps that are expected to scale past simple cases.
❇️ Originating from a rapid-built minimally viable e-commerce frontend.
npx degit adiled/vite-react-ts-rtk newappPresets
- Vite
- React 18
- TypeScript
State
- React Router 6
- Redux Toolkit
- RTK-Query
Styling
- TailwindCSS
Testing
- Vitest
- MSW
- React Testing Library
Linting
- ESLint
- Prettier
- Husky
Very close to the redux-toolkit convention
-
src/app/store.ts: register reducers fromsrc/features/*/*-slice.ts -
src/app/hooks.ts: wraps store hooks into typescript
src/features/*/*-slice.ts: redux state slices
-
src/pages/*.tsx: react router mapped pages -
src/components/common/*tsx: common reusable components -
src/components/*.tsx: main components used in pages