useMemo vs React.Memo when it comes to JSX - podcast episode cover

useMemo vs React.Memo when it comes to JSX

Aug 04, 20225 minSeason 2Ep. 30
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

I was on the project with some really cool developers(ex Amazon) and I saw them using useMemo inside of the jsx, like this:

So my question would be, do you think this is good practice or would you rather use React.memo for these kind of things....

useMemo vs React.Memo when it comes to JSX

For the best experience, listen in Metacast app for iOS or Android