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.