4 ms·
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
by nfRfqX5n 5y ago
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
- BinaryBullet 5y agoI wonder if this is the plugin they are using: https://github.com/steadicat/eslint-plugin-react-memo https://github.com/steadicat/eslint-plugin-react-memo Does anyone know of any other eslint plugins that help enforce this?
- fabiendem 5y agoThe author of the article wrote the ESLint plugin: https://github.com/steadicat https://github.com/steadicat So they probably use(d) it.
- Zababa 5y agoWhat 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.