function ParentComponent() { const handleClick = () => { // logic } return ( <ChildComponent onClick={handleClick} /> ) } What problem with the above code? A performance problem. Every time ParentComponent re-render, ChildComponen...
Markdown supported · ⌘↵ to post
No responses yet.