// React + MobX .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-react-mobxBasic React+MobX guidelines but lacks concrete instructions and trigger conditions
1// React + MobX .cursorrules23// Prefer functional components with hooks45const preferFunctionalComponents = true;67// MobX best practices89const mobxBestPractices = [10 "Use MobX-react-lite for optimal performance with functional components",11 "Implement stores for managing application state",12 "Utilize computed values for derived state",13 "Use actions for modifying observable state",14 "Implement proper error handling in asynchronous actions",15];1617// Folder structure1819const folderStructure = `20src/21 components/22 stores/23 hooks/24 pages/25 utils/26`;2728// Additional instructions2930const additionalInstructions = `311. Use TypeScript for type safety with MobX322. Implement strict mode for MobX for better debugging333. Use observer HOC or useObserver hook for reactive components344. Implement proper dependency injection for stores355. Use reaction for side-effects based on observable changes366. Utilize MobX DevTools for debugging377. Follow MobX best practices for scalable state management38`;3940
Full transparency — inspect the skill content before installing.