Dopamine AI Prompt Library
Open search
Menu
Submitted by
cursor_carl34 prompts

React Mobx

Cursor rules for React development with MobX integration.

Added Nov 26, 2026

Prompt

react-mobx.mdMarkdown · 38 lines · about 250 tokens
// React + MobX .cursorrules
// Prefer functional components with hooks
const preferFunctionalComponents = true;
// MobX best practices
const mobxBestPractices = [
"Use MobX-react-lite for optimal performance with functional components",
"Implement stores for managing application state",
"Utilize computed values for derived state",
"Use actions for modifying observable state",
"Implement proper error handling in asynchronous actions",
];
// Folder structure
const folderStructure = `
src/
components/
stores/
hooks/
pages/
utils/
`;
// Additional instructions
const additionalInstructions = `
1. Use TypeScript for type safety with MobX
2. Implement strict mode for MobX for better debugging
3. Use observer HOC or useObserver hook for reactive components
4. Implement proper dependency injection for stores
5. Use reaction for side-effects based on observable changes
6. Utilize MobX DevTools for debugging
7. Follow MobX best practices for scalable state management
`;

About this prompt

Content type
Code
Industries
Software Development
Models
Cursor
Languages
English
Length
38 lines, about 250 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
cursor_carl34 prompts
Profile

More from cursor_carl

View all

React Router V7

React Router v7 rules for framework mode, data routers, loaders, actions, route modules, and progressive enhancement

Nextjs SEO Dev

Cursor rules for Next.js development with SEO optimization.