3 ms·
I'm not sure what you're arguing here. useMemo() works for memoizing child elements. I linked to the React docs showing this.
by pavlov 3y ago
I'm not sure what you're arguing here.
useMemo() works for memoizing child elements. I linked to the React docs showing this.
- culi 3y agoI see what you mean. I'm a little shocked the docs have an example of it being used in this way. Using `useMemo` in this way is generally considered a bad practice and a "hack". The new version of the react docs does not have an example of useMemo being (mis)-used in this way