Dopamine AI Prompt Library
Open search
Menu
Submitted by
quinn_qa22 prompts

Typescript React

Cursor rules for TypeScript development with React integration.

Added Nov 26, 2026

Prompt

typescript-react.mdMarkdown · 41 lines · about 270 tokens
// TypeScript React .cursorrules
// Prefer functional components
const preferFunctionalComponents = true;
// TypeScript React best practices
const typescriptReactBestPractices = [
"Use React.FC for functional components with props",
"Utilize useState and useEffect hooks for state and side effects",
"Implement proper TypeScript interfaces for props and state",
"Use React.memo for performance optimization when needed",
"Implement custom hooks for reusable logic",
"Utilize TypeScript's strict mode",
];
// Folder structure
const folderStructure = `
src/
components/
hooks/
pages/
types/
utils/
App.tsx
index.tsx
`;
// Additional instructions
const additionalInstructions = `
1. Use .tsx extension for files with JSX
2. Implement strict TypeScript checks
3. Utilize React.lazy and Suspense for code-splitting
4. Use type inference where possible
5. Implement error boundaries for robust error handling
6. Follow React and TypeScript best practices and naming conventions
7. Use ESLint with TypeScript and React plugins for code quality
`;

About this prompt

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

More from quinn_qa

View all

Vue Pinia

Vue 3 and TypeScript state management guidance for Pinia stores, Composition API usage, SSR, persistence, and testing.

Cloudflare Workers Hono Angular Saas

Cursor rules for full-stack SaaS applications on Cloudflare Workers with Hono APIs, Angular frontends, typed RPC, D1/Neon, and production observability.