1
2 Comments

Avoid Inline Functions

https://twitter.com/nayanshah_neo/status/1494239811657297924
submitted this linkon February 17, 2022
  1. 1

    Kent C. Dodds have a great article on this, it really depends on the use case
    https://kentcdodds.com/blog/usememo-and-usecallback

    1. 1

      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).