Report
https://twitter.com/nayanshah_neo/status/1494239811657297924
Kent C. Dodds have a great article on this, it really depends on the use case https://kentcdodds.com/blog/usememo-and-usecallback
Thanks for the blog link @gmadar, very informative read. I agree with him.
My argument was slightly different, I was talking about defining a function before render Vs defining it on render(with jsx).
Kent C. Dodds have a great article on this, it really depends on the use case
https://kentcdodds.com/blog/usememo-and-usecallback
Thanks for the blog link @gmadar, very informative read. I agree with him.
My argument was slightly different, I was talking about defining a function before render Vs defining it on render(with jsx).