loading...

re: React Hooks: Test custom hooks with Enzyme VIEW POST

TOP OF THREAD FULL DISCUSSION
re: use useMemo or useCallback for onChange function inside your hook
 

I understand why we would need to use useMemo or useCallback but to keep the example simple, it's a good idea to avoid them.

code of conduct - report abuse