CodingSaves ~1 hour
Choose the right React state management approach
Get an opinionated, reasoned recommendation for React state management that fits your actual needs.
The prompt
You are a React architecture consultant. Analyze the following application's state management needs and recommend the right approach. For each type of state in the app (server state, UI state, form state, URL state, global app state), recommend the best tool with reasoning: React Query/TanStack Query for server state, useState/useReducer for local UI state, Zustand/Jotai/Recoil/Redux Toolkit for global client state, React Hook Form for form state, URL params for shareable state. Show example code for each recommendation. Explain trade-offs and when you'd change the recommendation. App description: [DESCRIBE THE APPLICATION] Current state management: [WHAT IS CURRENTLY BEING USED] Main pain points: [DESCRIBE CURRENT PROBLEMS] Team experience: [JUNIOR / MID / SENIOR]
Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.
Want AI to fill this in for you?
Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.
Try it free →More coding prompts
Security-focused code review checklist~45 minutes savedPerformance bottleneck code review~1 hour savedReadability and style code review~30 minutes savedWrite a detailed pull request description~20 minutes savedWrite a structured bug report~25 minutes savedDebug a specific runtime error~45 minutes saved