React Redux Typescript
Cursor rules for React development with Redux and TypeScript integration.
Awesome CursorRulesv10 stars · 0 forks · 0 makes≈257 tokens
// React + Redux + TypeScript .cursorrules
// Prefer functional components with hooks
const preferFunctionalComponents = true;
// Use TypeScript for type safety
const useTypeScript = true;
// Redux best practices
const reduxBestPractices = [ "Use Redux Toolkit for efficient Redux development", "Implement slice pattern for organizing Redux code", "Utilize createAsyncThunk for handling async actions", "Use selectors for accessing state in components", ];
// Folder structure
const folderStructure = src/ components/ features/ store/ slices/ hooks.ts store.ts types/ utils/;
// Additional instructions
const additionalInstructions = `
- Use React.FC for functional components with props
- Implement strict TypeScript checks
- Use Redux hooks (useSelector, useDispatch) in components
- Create reusable typed hooks for Redux operations
- Implement proper error handling in async operations
- Use Redux DevTools for debugging
- Follow Redux style guide for naming conventions `;