eslint-plugin-react-memo
eslint-plugin-react-memo copied to clipboard
Simple types shall not be treated like references
Types like:
- number
- string
- null
- undefined
should not be candidate for Memo, as they're not referencial types.
(Only colSpan is incorrect in this sample, the style object is highlighted correctly ofc)
Number / string consts should not be treated like error, concatenations as well (if the concatenation parts are stable)
Also, when we're iterating throu list, and creating elements, if the array is stable, and elements are stable, we should be able to use props without warning