DEV Community

Discussion on: You (probably) don't need that useState + useEffect

Collapse
leob profile image
leob

I suppose "dangerous" only if those calculations are slow? if the time to execute them is negligible then useMemo would probably be overkill ... otherwise then yes, it would be the recommended approach :)