Set up TypeScript, React and Vitest
Make a folder and write package.json and tsconfig.json, then install. React is the only runtime dependency; the rest are for types and tests.
Vitest runs .ts and .tsx test files directly, so there is no build step. jsdom gives the React tests a fake page to render into.
WHY
Every later step is proved by a test, not by clicking around. A store is plain logic, so tests are the quickest way to see it work.