Skip to content

Latest commit

 

History

History
112 lines (72 loc) · 1.67 KB

README.md

File metadata and controls

112 lines (72 loc) · 1.67 KB

Drop-in Replacement for CRA but powered by Vite

Things in CRA, supported here:

  • Import SVG's directly as React Component via SVGR
  • Unit Testing via Vitest & React Testing Library
  • ESLint Rules & Prettier
  • Tailwind
  • Absolute imports within src directory

Extra Additions

  • Conventional Commits using Commitlint

Usage (with degit)

degit sigfriedcub1990/vite-react-ts your-app-name

Tech Stack - Overview

  • Vite
  • React - Typscript
    • react-error-boundary
  • npm

Editor Config

  • vscode settings & extension recommendations
  • .editorconfig file

Lint and Formatting

  • Eslint & Prettier Configured
  • Lints
    • react
    • react hooks
    • typescript
    • jsx-a11y

Testing

  • Vitest + React Testing Library (plus some plugins)

Styling

  • TailwindCSS v3

Other Recommended Libraries:

Forms

  • React Hook Form
  • Zod (for validations)

CSS-in-js

  • Emotion
  • Complie Time Atomic CSS-in-Js
    • Stylex (Facebook, not Open Source yet)
    • Linaria
    • Compiled (still in beta)

Routing

  • React-Router-Dom
  • React Location

Date Manipulation

  • Dayjs
  • date-fns
  • Luxon

HTTP Client

  • Ky
  • Axios

Global Store (full-blown / lite-version)

  • Redux Toolkit / Zustand
  • Recoil / Jotai
  • Mobx / Valtio
  • xstate / robot

Server State

  • React Query
  • SWR
  • RTKQuery