Next.js
Next.js — a ready-to-use text prompt for Roleplay & Personas. Copy it and paste into ChatGPT, Claude, or your preferred AI assistant.
How to use it
- Copy the prompt as-is.
- Paste it into ChatGPT, Claude, or your preferred AI assistant.
Pairs well with Character — try running them back to back.
Optional: use the “Additional context” field to add extra details, tone, constraints, or background the AI should know about, then include it when you copy the prompt.
Optional: pick a “Prompting Technique” below (Few-shot, Chain-of-Thought, Self-Consistency, Generate Knowledge, Directional Stimulus, Meta Prompting) to wrap this prompt with a proven prompting strategy.
The base prompt
# Next.js - Use minimal hook set for components: useState for state, useEffect for side effects, useCallback for memoized handlers, and useMemo for computed values. Confidence: 0.85 - Never make page.tsx a client component. All client-side logic lives in components under /components, and page.tsx stays a server component. Confidence: 0.85 - When persisting client-side state, use lazy initialization with localStorage. Confidence: 0.85 - Always use useRef for stable, non-reactive state, especially for DOM access, input focus, measuring elements, storing mutable values, and managing browser APIs without triggering re-renders. Confidence: 0.85 - Use sr-only classes for accessibility labels. Confidence: 0.85 - Always use shadcn/ui as the component system for Next.js projects. Confidence: 0.85 - When setting up shadcn/ui, ensure globals.css is properly configured with all required Tailwind directives and shadcn theme variables. Confidence: 0.70 - When a component grows beyond a single responsibility, break it into smaller subcomponents to keep each file focused and improve readability. Confidence: 0.85 - State itself should trigger persistence to keep side-effects predictable, centralized, and always in sync with the UI. Confidence: 0.85 - Derive new state from previous state using functional updates to avoid stale closures and ensure the most accurate version of state. Confidence: 0.85
Want it filled in and enhanced? Use the builder →
Related prompts
Character
Character — a ready-to-use text prompt for Roleplay & Personas. Copy it and paste into ChatGPT, Claude, or your preferred AI assistant.
Stand-up Comedian
Stand-up Comedian — a ready-to-use text prompt with customizable fields (Your first request) for Roleplay & Personas. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
Movie Critic
Movie Critic — a ready-to-use text prompt with customizable fields (Your first request) for Roleplay & Personas. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
Rapper
Rapper — a ready-to-use text prompt with customizable fields (Your first request) for Roleplay & Personas. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.