Open ganyanchuan1989 opened 1 year ago
version: v4.4.3 hot key: rmc output:
rmc
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)
Hi, I want to work on this. Please assign me.
What if he doesn't assign it to you and you submit mr yourself?
version: v4.4.3 hot key:
rmc
output:This way of declaring loses the name of the component in React Developer Tools。I wish as follows:
or