Snippets `rmc` and `rmcp` missing component name。
ganyanchuan1989 opened this issue · 2 comments
ganyanchuan1989 commented
version: v4.4.3
hot key: rmc
output:
import React, { memo } from 'react'
const Comp = memo(() => {
return (
<div>Comp</div>
)
})
export default CompThis 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 commented
Hi,
I want to work on this.
Please assign me.
LukerSpringtree commented
Hi, I want to work on this. Please assign me.
What if he doesn't assign it to you and you submit mr yourself?