1Hardgeneralโฑ 45sWhat problem does React.memo solve, and when can it hurt rather than help?๐โผAIt always speeds up every componentBIt skips re-rendering a component when its props are shallowly equal to the previous render, but the shallow comparison itself has a cost that can outweigh benefits for cheap components or ones with frequently-changing propsCIt replaces the need for keys in listsDIt only works with class components