Skip to content

"rmcp" is not as in the docs #282

Open
@ndeviant

Description

@ndeviant

https://github.com/ults-io/vscode-react-javascript-snippets/blob/HEAD/docs/Snippets.md#rmcp

Here you can see that it should create named function, but in reality it creates anonymous arrow function:
https://github.com/ults-io/vscode-react-javascript-snippets/blob/185bb91a0b692c54136663464e8225872c434637/src/sourceSnippets/components.ts#L239

There is significant advantage to have named function when debugging, and eslint rules to enforce naming functions within react memo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions