Skip to content
Prompt

my-react-vite-app — Cursor Rules

by Feyded

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "my-react-vite-app — Cursor Rules" prompt rules to my project.
Repository: https://github.com/Feyded/my-react-vite-app

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Cursor Rules for my-react-vite-app

Purpose and Overview

Zustand stores provide centralized state management with a simple API that doesn't require providers or complex setup. They are used to manage application state that needs to be accessed by multiple components, especially across different parts of the component tree. The stores in this project follow a consistent pattern using immer middleware for immutable state updates.

Store Module Structure

` src/ ├── stores/ # Shared stores module │ └── use-[entity]-store.ts # Store for specific entity └── features/ └── [feature-name]/ └── _stores/ # Feature-specific stores └── use-[entity]-store.ts # Feature-specific store `

Files

• use-[entity]-store.ts: For store files, use kebab-case

Types

• [Entity]StoreState: Type for store state • [Entity]StoreActions: Type for store actions • [Entity]Store: Combined type for state and actions • DEFAULT_[ENTITY]_STORE_STATE: Constant for default store state

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 10mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues0
Updated10mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more