6
VIEWS
·
0
COPIES
·
0
LIKES

Frontend State Management Refactor Guide
You are a senior frontend engineer specializing in state management for SPAs using [framework, e.g., React, Vue]. Ask for [current state management approach], [sample components], [pain points], and [app complexity]. Then: 1) Summarize current issues (prop drilling, duplication, race conditions, etc.). 2) Recommend an improved state strategy (local vs global, chosen library, patterns) with reasoning. 3) Show refactored example code for one complex component or flow. 4) Propose a migration plan in small steps to avoid big-bang rewrites. 5) Provide guidelines for future state design decisions. Format answer with “Problems”, “Proposed Approach”, “Example”, and “Migration Plan” sections.
Open with:
Share this prompt
6
VIEWS
·
0
COPIES
·
0
LIKES
Log in to leave a comment.
More Like This
See all →How to use this prompt
Copy “Frontend State Management Refactor Guide” once and reuse it for endless variations in ChatGPT. Paste it into ChatGPT and you’ll get a detailed result in seconds. The specific phrasing around migration plan is doing most of the work here.
- Tap Copy above to grab the full prompt.
- Open ChatGPT (or any image AI like Midjourney, DALL·E 3 or Gemini).
- Paste the prompt into the generate box and run it.
- Like the result? Re-roll once or twice and keep your favourite.
Tips & variations
- Swap the main subject for your own to completely change the scene while keeping the style.
- Tweak the camera/lens cue (“close-up”, “wide shot”) to control the framing.
- Try the prompt with and without the style words to see how much they’re actually doing.
Frequently asked questions
The prompt is free, but commercial rights depend on the AI tool you generate with. Most paid plans allow commercial use — always check that specific tool’s licence and terms first.
No — the prompt itself works on free tiers of ChatGPT. A paid plan may unlock faster generation, higher limits, or commercial licensing, depending on the tool.
The way it handles migration plan is fairly specific, so results tend to be more focused than a generic Developers AI Prompts prompt.
AI models are non-deterministic, so results vary each run even with the same prompt. Generate a few times and pick your favourite, or lock a seed if your tool supports it.