Cursor · PluginsFrameworks#3
React + TypeScript
Function components, hooks and strict typing.
by Prompt Studio
reacttypescript
Contents
Where it goes: .cursor/rules/react.mdc
---
description: Convenciones y buenas prácticas de React + TypeScript
globs: **/*.tsx
alwaysApply: false
---
- Solo componentes funcionales y hooks. Un componente por archivo, con nombre en PascalCase.
- Tipa las props con `type Props = { ... }`; no uses `any`.
- Deriva datos en el render en lugar de duplicarlos en estado. Usa `useEffect` solo para sincronizar con sistemas externos.
- Listas con `key` estable (nunca el índice si el orden cambia).
- Accesibilidad: elementos semánticos, `label` en cada campo y foco visible.
More in Plugins
Next.js
App Router, Server Components, Server Actions and caching.
Python
Typing, package layout and tests with pytest.
Expo / React Native
Expo Router, styling and mobile performance.
Go
HTTP APIs, error handling and context.
Tailwind + shadcn/ui
Utility classes, design tokens and accessible components.
Ruby on Rails
Rails conventions, Hotwire and tests.