DEV Community

Discussion on: You don't know useEffect

trunghieu99tt profile image
Trung Hieu Nguyen Author • Edited on

It depends on the scenario, the main purpose of using Memoization here is to prevent unnecessary re-render (i.e the List only cares about fakeList, but it's re-rendered just because of changes of other stuff). Actually in real-life project, determining whether to use Memoization or not is much more complex than that.

ponikar profile image

That's great.