Re:We memo all the things (2020)
by nfRfqX5n on Monday October 25, 2021 @10:24AM
(#28988138)
I think it would be easy to create a rule to see if the default export is wrapped in memo, but you could also just have it as a coding standard
[ Parent
| on HN ]
What do you mean by coding standard? My point was that if it's enforced by tool, either as a reminder, or an automatic modification, it's fine, but if it's not, it's annoying.
Re:We memo all the things (2020)
by BinaryBullet on Monday October 25, 2021 @10:28AM
(#28988185)
I wonder if this is the plugin they are using:
https://github.com/steadicat/eslint-plugin-react-memo
Does anyone know of any other eslint plugins that help enforce this?
The author of the article wrote the ESLint plugin: https://github.com/steadicat
So they probably use(d) it.
That's great!