React + shadcn/ui starter
Vite, shadcn/ui, TanStack Router and Query, Zustand. A tested combination you can create in one command and keep extending.
$ npm create pickstack@latest my-app -- --framework react --modules tailwind,shadcn,zustand,tanstack-router,tanstack-query,vitest,testing-library,eslint,prettier --yesCustomize in the configurator
Packages
| Package | Version | Type |
|---|---|---|
@tanstack/react-query | ^5.108.4 | runtime |
@tanstack/react-router | ^1.170.46 | runtime |
class-variance-authority | ^0.7.1 | runtime |
cn | ^0.5.2 | runtime |
radix-ui | ^1.8.1 | runtime |
shadcn | ^4.23.0 | runtime |
tw-animate-css | ^1.4.0 | runtime |
zustand | ^5.1.0 | runtime |
@eslint/js | ^10.0.1 | dev |
@tailwindcss/vite | ^4.3.5 | dev |
@tanstack/router-plugin | ^1.169.0 | dev |
@testing-library/dom | ^10.4.2 | dev |
@testing-library/jest-dom | ^8.0.0 | dev |
@testing-library/react | ^16.3.3 | dev |
@testing-library/user-event | ^14.6.13 | dev |
eslint | ^10.15.0 | dev |
eslint-config-prettier | ^10.1.8 | dev |
eslint-plugin-react-hooks | ^7.1.1 | dev |
eslint-plugin-react-refresh | ^0.5.8 | dev |
globals | ^17.14.0 | dev |
jsdom | ^31.0.1 | dev |
prettier | ^3.10.1 | dev |
tailwindcss | ^4.3.5 | dev |
typescript-eslint | ^8.74.0 | dev |
vitest | ^5.1.1 | dev |
New files
dist src/routeTree.gen.ts pnpm-lock.yaml package-lock.json yarn.lock bun.lock
{}
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "radix-nova",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
import js from "@eslint/js";
import { defineConfig, globalIgnores } from "eslint/config";
import eslintConfigPrettier from "eslint-config-prettier/flat";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import globals from "globals";
import tseslint from "typescript-eslint";
export default defineConfig([
globalIgnores(["dist", "src/routeTree.gen.ts"]),
{
files: ["**/*.{ts,tsx}"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
globals: globals.browser,
},
},
{
// Files written by the UI kit's CLI.
files: ["src/components/ui/**/*.{ts,tsx}"],
rules: {
"react-refresh/only-export-components": "off",
},
},
{
// The router plugin handles HMR for route files (`Route` and its component).
files: ["src/routes/**/*.{ts,tsx}"],
rules: {
"react-refresh/only-export-components": "off",
},
},
eslintConfigPrettier,
]);
[
"React 19",
"Vite",
"TypeScript",
"Tailwind CSS",
"shadcn/ui",
"Zustand",
"TanStack Router",
"TanStack Query",
"Vitest",
"Testing Library",
"ESLint",
"Prettier"
]
/** Loads the stack list served from `public/stack.json`. */
export async function fetchStack(): Promise<string[]> {
const response = await fetch(`${import.meta.env.BASE_URL}stack.json`);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
return response.json();
}
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { describe, expect, it } from "vitest";
import Counter from "./Counter";
describe("Counter", () => {
it("increments when +1 is clicked", async () => {
const user = userEvent.setup();
render(<Counter />);
await user.click(screen.getByRole("button", { name: "+1" }));
expect(screen.getByText("1")).toBeInTheDocument();
});
});
import { useQuery } from "@tanstack/react-query";
import { fetchStack } from "../api/stack";
export default function StackList() {
const stack = useQuery({ queryKey: ["stack"], queryFn: fetchStack });
return (
<p className="max-w-md text-center text-slate-600">
{stack.isPending
? "Loading…"
: stack.isError
? "Could not load the stack."
: `Built with ${stack.data.join(", ")}.`}
</p>
);
}
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "cn";
import { Slot } from "radix-ui";
import type * as React from "react";
const buttonVariants = cva(
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {
default: "bg-primary text-primary-foreground hover:bg-primary/80",
outline:
"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
secondary:
"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
ghost:
"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
destructive:
"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
link: "text-primary underline-offset-4 hover:underline",
},
size: {
default:
"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
icon: "size-8",
"icon-xs":
"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
"icon-sm":
"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
"icon-lg": "size-9",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
},
);
function Button({
className,
variant = "default",
size = "default",
asChild = false,
...props
}: React.ComponentProps<"button"> &
VariantProps<typeof buttonVariants> & {
asChild?: boolean;
}) {
const Comp = asChild ? Slot.Root : "button";
return (
<Comp
data-slot="button"
data-variant={variant}
data-size={size}
className={cn(buttonVariants({ variant, size, className }))}
{...props}
/>
);
}
export { Button, buttonVariants };
import { cn } from "cn";
import type * as React from "react";
function Card({
className,
size = "default",
...props
}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
return (
<div
data-slot="card"
data-size={size}
className={cn(
"group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
className,
)}
{...props}
/>
);
}
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-header"
className={cn(
"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",
className,
)}
{...props}
/>
);
}
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-title"
className={cn(
"font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",
className,
)}
{...props}
/>
);
}
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-description"
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
);
}
function CardAction({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-action"
className={cn(
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
className,
)}
{...props}
/>
);
}
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-content"
className={cn("px-(--card-spacing)", className)}
{...props}
/>
);
}
function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-footer"
className={cn(
"flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",
className,
)}
{...props}
/>
);
}
export {
Card,
CardAction,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
};
export { cn } from "cn";
import { createRootRoute, Link, Outlet } from "@tanstack/react-router";
export const Route = createRootRoute({
component: RootLayout,
});
function RootLayout() {
return (
<main className="flex min-h-screen flex-col items-center justify-center gap-8 bg-slate-50 p-8 text-slate-900">
<nav className="flex gap-4 text-sm font-medium">
<Link
className="text-slate-600 hover:text-slate-900"
to="/"
activeOptions={{ exact: true }}
>
Home
</Link>
<Link className="text-slate-600 hover:text-slate-900" to="/about">
About
</Link>
</nav>
<Outlet />
</main>
);
}
import { createFileRoute } from "@tanstack/react-router";
export const Route = createFileRoute("/about")({
component: About,
});
function About() {
return (
<section className="flex flex-col items-center gap-6">
<h1 className="text-3xl font-bold tracking-tight">About</h1>
<p className="max-w-md text-center text-slate-600">
Built with React 19, Vite, TypeScript, Tailwind CSS, shadcn/ui, Zustand,
TanStack Router, TanStack Query, Vitest, Testing Library, ESLint,
Prettier.
</p>
</section>
);
}
import { createFileRoute } from "@tanstack/react-router";
import Counter from "../components/Counter";
import StackList from "../components/StackList";
export const Route = createFileRoute("/")({
component: Home,
});
function Home() {
return (
<section className="flex flex-col items-center gap-6">
<h1 className="text-3xl font-bold tracking-tight">my-app</h1>
<Counter />
<StackList />
</section>
);
}
/* eslint-disable */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// This file was automatically generated by TanStack Router.
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
import { Route as rootRouteImport } from './routes/__root'
import { Route as IndexRouteImport } from './routes/index'
import { Route as AboutRouteImport } from './routes/about'
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const AboutRoute = AboutRouteImport.update({
id: '/about',
path: '/about',
getParentRoute: () => rootRouteImport,
} as any)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/about': typeof AboutRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/about': typeof AboutRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/about': typeof AboutRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/about'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/about'
id: '__root__' | '/' | '/about'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AboutRoute: typeof AboutRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
'/about': {
id: '/about'
path: '/about'
fullPath: '/about'
preLoaderRoute: typeof AboutRouteImport
parentRoute: typeof rootRouteImport
}
}
}
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AboutRoute: AboutRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
import { create } from "zustand";
interface CounterState {
count: number;
increment: () => void;
decrement: () => void;
}
export const useCounterStore = create<CounterState>()((set) => ({
count: 0,
increment: () => set((state) => ({ count: state.count + 1 })),
decrement: () => set((state) => ({ count: state.count - 1 })),
}));
import "@testing-library/jest-dom/vitest";
import { cleanup } from "@testing-library/react";
import { afterEach } from "vitest";
afterEach(() => {
cleanup();
});
Changes to existing files
+import { Button } from "@/components/ui/button";+import {+ Card,+ CardContent,+ CardFooter,+ CardHeader,+ CardTitle,+} from "@/components/ui/card";+import { useCounterStore } from "../store/useCounterStore";−import { useState } from "react"; export default function Counter() {+ const count = useCounterStore((state) => state.count);+ const increment = useCounterStore((state) => state.increment);+ const decrement = useCounterStore((state) => state.decrement);− const [count, setCount] = useState(0); return (+ <Card className="w-64 text-center">+ <CardHeader>+ <CardTitle>Counter</CardTitle>+ </CardHeader>+ <CardContent>+ <p className="text-5xl font-bold tabular-nums">{count}</p>+ </CardContent>+ <CardFooter className="justify-center gap-3">+ <Button variant="outline" onClick={decrement}>− <div className="card">− <p className="count">{count}</p>− <div className="row">− <button− type="button"− className="btn"− onClick={() => setCount((n) => n - 1)}− > -1+ </Button>+ <Button onClick={increment}>+1</Button>+ </CardFooter>+ </Card>− </button>− <button− type="button"− className="btn"− onClick={() => setCount((n) => n + 1)}− >− +1− </button>− </div>− </div> ); }
+@import "tailwindcss";+@import "tw-animate-css";+@import "shadcn/tailwind.css";−:root {− font-family: system-ui, sans-serif;− color: #0f172a;− background: #f8fafc;−} +@custom-variant dark (&:is(.dark *));−body {− margin: 0;−} +@theme inline {+ --font-heading: var(--font-sans);+ --color-sidebar-ring: var(--sidebar-ring);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar: var(--sidebar);+ --color-chart-5: var(--chart-5);+ --color-chart-4: var(--chart-4);+ --color-chart-3: var(--chart-3);+ --color-chart-2: var(--chart-2);+ --color-chart-1: var(--chart-1);+ --color-ring: var(--ring);+ --color-input: var(--input);+ --color-border: var(--border);+ --color-destructive: var(--destructive);+ --color-accent-foreground: var(--accent-foreground);+ --color-accent: var(--accent);+ --color-muted-foreground: var(--muted-foreground);+ --color-muted: var(--muted);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-secondary: var(--secondary);+ --color-primary-foreground: var(--primary-foreground);+ --color-primary: var(--primary);+ --color-popover-foreground: var(--popover-foreground);+ --color-popover: var(--popover);+ --color-card-foreground: var(--card-foreground);+ --color-card: var(--card);+ --color-foreground: var(--foreground);+ --color-background: var(--background);+ --radius-sm: calc(var(--radius) * 0.6);+ --radius-md: calc(var(--radius) * 0.8);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) * 1.4);+ --radius-2xl: calc(var(--radius) * 1.8);+ --radius-3xl: calc(var(--radius) * 2.2);+ --radius-4xl: calc(var(--radius) * 2.6);−.app {− min-height: 100vh;− display: flex;− flex-direction: column;− align-items: center;− justify-content: center;− gap: 2rem;− padding: 2rem;− box-sizing: border-box; } +:root {+ --background: oklch(1 0 0);+ --foreground: oklch(0.145 0 0);+ --card: oklch(1 0 0);+ --card-foreground: oklch(0.145 0 0);+ --popover: oklch(1 0 0);+ --popover-foreground: oklch(0.145 0 0);+ --primary: oklch(0.205 0 0);+ --primary-foreground: oklch(0.985 0 0);+ --secondary: oklch(0.97 0 0);+ --secondary-foreground: oklch(0.205 0 0);+ --muted: oklch(0.97 0 0);+ --muted-foreground: oklch(0.556 0 0);+ --accent: oklch(0.97 0 0);+ --accent-foreground: oklch(0.205 0 0);+ --destructive: oklch(0.577 0.245 27.325);+ --border: oklch(0.922 0 0);+ --input: oklch(0.922 0 0);+ --ring: oklch(0.708 0 0);+ --chart-1: oklch(0.87 0 0);+ --chart-2: oklch(0.556 0 0);+ --chart-3: oklch(0.439 0 0);+ --chart-4: oklch(0.371 0 0);+ --chart-5: oklch(0.269 0 0);+ --radius: 0.625rem;+ --sidebar: oklch(0.985 0 0);+ --sidebar-foreground: oklch(0.145 0 0);+ --sidebar-primary: oklch(0.205 0 0);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.97 0 0);+ --sidebar-accent-foreground: oklch(0.205 0 0);+ --sidebar-border: oklch(0.922 0 0);+ --sidebar-ring: oklch(0.708 0 0);−.title {− font-size: 1.875rem;− margin: 0; } +.dark {+ --background: oklch(0.145 0 0);+ --foreground: oklch(0.985 0 0);+ --card: oklch(0.205 0 0);+ --card-foreground: oklch(0.985 0 0);+ --popover: oklch(0.205 0 0);+ --popover-foreground: oklch(0.985 0 0);+ --primary: oklch(0.922 0 0);+ --primary-foreground: oklch(0.205 0 0);+ --secondary: oklch(0.269 0 0);+ --secondary-foreground: oklch(0.985 0 0);+ --muted: oklch(0.269 0 0);+ --muted-foreground: oklch(0.708 0 0);+ --accent: oklch(0.269 0 0);+ --accent-foreground: oklch(0.985 0 0);+ --destructive: oklch(0.704 0.191 22.216);+ --border: oklch(1 0 0 / 10%);+ --input: oklch(1 0 0 / 15%);+ --ring: oklch(0.556 0 0);+ --chart-1: oklch(0.87 0 0);+ --chart-2: oklch(0.556 0 0);+ --chart-3: oklch(0.439 0 0);+ --chart-4: oklch(0.371 0 0);+ --chart-5: oklch(0.269 0 0);+ --sidebar: oklch(0.205 0 0);+ --sidebar-foreground: oklch(0.985 0 0);+ --sidebar-primary: oklch(0.488 0.243 264.376);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.269 0 0);+ --sidebar-accent-foreground: oklch(0.985 0 0);+ --sidebar-border: oklch(1 0 0 / 10%);+ --sidebar-ring: oklch(0.556 0 0);−.nav {− display: flex;− gap: 1rem; } +@layer base {+ * {+ @apply border-border outline-ring/50;+ }+ body {+ @apply bg-background text-foreground;+ }+ html {+ @apply font-sans;+ }−.link {− color: #475569;− text-decoration: none;− font-weight: 500; } −.link:hover {− color: #0f172a;−}− −.page {− display: flex;− flex-direction: column;− align-items: center;− gap: 1.5rem;−}− −.text {− max-width: 28rem;− text-align: center;− color: #475569;−}− −.card {− background: #fff;− padding: 2rem;− border-radius: 1rem;− box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);− text-align: center;−}− −.count {− font-size: 3rem;− font-weight: 700;− margin: 0;− font-variant-numeric: tabular-nums;−}− −.row {− margin-top: 1.5rem;− display: flex;− justify-content: center;− gap: 0.75rem;−}− −.btn {− background: #0f172a;− color: #fff;− border: 0;− border-radius: 0.5rem;− padding: 0.5rem 1rem;− font: inherit;− cursor: pointer;−}− −.btn:hover {− background: #334155;−}−
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { createRouter, RouterProvider } from "@tanstack/react-router"; import { StrictMode } from "react"; import { createRoot } from "react-dom/client";+import { routeTree } from "./routeTree.gen";−import App from "./App"; import "./index.css"; +const router = createRouter({ routeTree });+ +declare module "@tanstack/react-router" {+ interface Register {+ router: typeof router;+ }+}+const queryClient = new QueryClient();+ createRoot(document.getElementById("root")!).render( <StrictMode>+ <QueryClientProvider client={queryClient}>+ <RouterProvider router={router} />+ </QueryClientProvider>− <App /> </StrictMode>, );
⋯ 9 unchanged lines "skipLibCheck": true, "isolatedModules": true, "verbatimModuleSyntax": true,+ "types": ["vite/client"],+ "paths": {+ "@/*": ["./src/*"]+ }− "types": ["vite/client"] }, "include": ["src", "vite.config.ts"] }⋯ 1 unchanged lines
+/// <reference types="vitest/config" />+import tailwindcss from "@tailwindcss/vite";+import { tanstackRouter } from "@tanstack/router-plugin/vite"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; export default defineConfig({+ plugins: [+ tanstackRouter({ target: "react", autoCodeSplitting: true }),+ react(),+ tailwindcss(),+ ],+ resolve: { tsconfigPaths: true },+ test: {+ environment: "jsdom",+ setupFiles: ["./src/test-setup.ts"],+ },− plugins: [react()], });
Project files
.gitignore.prettierignore.prettierrcREADME.mdcomponents.jsoneslint.config.jsindex.htmlpackage.jsonpublic/stack.jsonsrc/api/stack.tssrc/components/Counter.test.tsxsrc/components/Counter.tsxsrc/components/StackList.tsxsrc/components/ui/button.tsxsrc/components/ui/card.tsxsrc/index.csssrc/lib/utils.tssrc/main.tsxsrc/routeTree.gen.tssrc/routes/__root.tsxsrc/routes/about.tsxsrc/routes/index.tsxsrc/store/useCounterStore.tssrc/test-setup.tstsconfig.jsonvite.config.ts