Files
main/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-functional-components-preference.mdc
T
2025-02-17 17:50:15 +05:30

5 lines
246 B
Plaintext

---
description: This rule enforces the use of functional components with hooks in React components within the src/components directory.
globs: src/components/**/*.tsx
---
- Always use functional components with hooks instead of class components.