3 ms·
Regarding useCallback, you can probably skip it in most cases, unless the extra renders are a problem for you. Linters should help with missing dependencies.
by schwartzworld 5y ago
Regarding useCallback, you can probably skip it in most cases, unless the extra renders are a problem for you.
Linters should help with missing dependencies.
- ng12 5y agoYes! useCallback is an optimization and using it prematurely can be problematic.