react redux typescript
Cursor rules for React development with Redux and TypeScript integration.
Becerinin kendisi
// 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 = `
1. Use React.FC for functional components with props
2. Implement strict TypeScript checks
3. Use Redux hooks (useSelector, useDispatch) in components
4. Create reusable typed hooks for Redux operations
5. Implement proper error handling in async operations
6. Use Redux DevTools for debugging
7. Follow Redux style guide for naming conventions
`;
Nasıl kurulur
1. Open the tool and start a new conversation, project or template. 2. Paste the text below wherever the tool keeps standing instructions — usually called system prompt, instructions, or persona. 3. Save it so it applies to every run rather than a single message.
Sende işe yaradı mı?
Buraya yazmak için giriş yapın.Nereden geldi
and Related Rights in the Work and the meaning and intended legal