useCallback | Simple React Hooks

preview_player
Показать описание
How useCallback works in React #usecallback #react #reactjs #reactjsdeveloper #programming #progammer #frontend #coding #code
Рекомендации по теме
Комментарии
Автор

well, continue doing this concise explanatory videos. Thanks

philipmwangi
Автор

When the onChange is being called?
I mean.. You passed as a prop, but didnt trigged it inside Item component.
Could you please explain me?

bruamado
Автор

what does the empty curly braces {} in Item component mean...seems like a new pattern

mohasinkr
Автор

Thanks, does useCallback have to be used in conjunction with React.memo(Child) to make sure Child doesn't re-render unnecessarily?

So useCallback memoizes value for parent component, and React.memo prevents child component from re-rendering when not needed?

Nelsonm
Автор

Thats why I dont like ReactJS... it always re-rendered issue. Unlike Angular

MrJeszam
Автор

It's a lot confusing when u r using onChange as Props, u could also make it whenChanges instead of onChange.

molviwithskills