Aug 18, 2024
Well alrighty then. Not only do they not understand CSS, they also don't understand React. I think what they probably told you us that since styles are usually applied as objects, if you have no clue what you're doing you'll be recreating a new object on every render, which will cause the component to continually rerender. And it's probably fair to think that if you're willing to embrace Tailwind you may well be the type of developer who also was taken in by all the blog posts telling you not to use useMemo and useCallback.