79732233

Date: 2025-08-11 15:52:14
Score: 2
Natty:
Report link

you can’t use a TypeScript method decorator on a standalone function (including React function components or hooks). TypeScript decorators (both legacy and the current TC39 proposal) only target classes and class elements. Hooks and function components are plain functions, so a MethodDecorator won’t apply.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Boogie