DEV Community

Discussion on: React best practices and patterns to reduce code

Collapse
 
amn3s1a2018 profile image
Amn3s1a2018

Also in example 3...
The useCallback second parameter shouldn't be an empty array instead?
I don't see why would we need a new function instance for every new input / init combination.