Skip to content
New issue

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

Snippets rmc and rmcp missing component name。 #289

Open
ganyanchuan1989 opened this issue Feb 27, 2023 · 2 comments
Open

Snippets rmc and rmcp missing component name。 #289

ganyanchuan1989 opened this issue Feb 27, 2023 · 2 comments

Comments

@ganyanchuan1989
Copy link

ganyanchuan1989 commented Feb 27, 2023

version: v4.4.3
hot key: rmc
output:

import React, { memo } from 'react'

const Comp = memo(() => {
  return (
    <div>Comp</div>
  )
})

export default Comp

This way of declaring loses the name of the component in React Developer Tools。I wish as follows:

import React, { memo } from 'react'

const Comp = () => {
  return (
    <div>Comp</div>
  )
}

export default memo(Comp)

or

import React  from 'react'

const Comp = () => {
  return (
    <div>Comp</div>
  )
}

export default React.memo(Comp)
@theavitw
Copy link

theavitw commented Mar 3, 2023

Hi,
I want to work on this.
Please assign me.

@LukerSpringtree
Copy link

Hi, I want to work on this. Please assign me.

What if he doesn't assign it to you and you submit mr yourself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants