Files
main/rules-v0/react-graphql-apollo-client-cursorrules-prompt-file/react-functional-components-preference.mdc
2025-02-27 00:04:07 +05:30

5 lines
200 B
Plaintext

---
description: Enforces the use of functional components with hooks in React components.
globs: src/components/**/*.jsx
---
- Always use functional components with hooks instead of class components.