both anonymous function and normal function are recreated on every render. As components are function every time it is called all functions are recreated again, right?. Does normal function have any performance improvement over anonymous function?
function App() {
function handleClick() {
console.log('');
}
return(
<>
<Button onClick={handleClick} />
<Button onClick={() => {console.log('');}} />
</>
);
}
Only advantage I feel is more readable code.