Professional Documents
Culture Documents
React Memo
React Memo
Answer:
use React.memo() with <div> instead of <> beacuse <> triggers rerender of all the
elements as it is do not add extra nodes to the DOM. whereas in case of div the
rerender only happends to the data which changes