What is the primary purpose of React.memo?
-
A
To memoize the result of an expensive function
-
B
To prevent a function component from re-rendering when its props are unchanged
-
C
To cache API responses across renders
-
D
To persist state across component unmounts