useCallback when to use it
function ParentComponent() {
const handleClick = () => {
// logic
}
return (
<ChildComponent onClick={handleClick} />
)
}
What problem with the above code?
A performance problem. Every time ParentComponent re-render, ChildComponen...
tungnt620.com1 min read