We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support function no in class Decorator. In react app, I hope to use decorator to define the route information of function components.
Page.tsx
@Reflect.metadata('Route', { path: '/home' }) export function Page(){ return <div> Home Page </div> } console.log(Reflect.getMetadata('Route', Page).path ) // "/home"
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered:
Duplicate of #7318. And this would first require JavaScript to support function decorators.
Sorry, something went wrong.
Please follow the "search terms" part of the template. Thanks!
No branches or pull requests
Suggestion
support function no in class Decorator.
In react app, I hope to use decorator to define the route information of function components.
Use Cases
Page.tsx
Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: