Using global memoization in React

from blog Vladimir Klepov as a Coder, | ↗ original
When our React apps get slow, we usually turn to useMemo to avoid useless job on re-render. It’s a hammer that often works well, and makes it hard to shoot yourself in the foot. But useMemo is not a silver bullet — sometimes it just introduces more useless work instead of making your app faster. In this article, I explore the less conventional...