React JS Memo

Syntax: In this example, MyComponent will only re-render if data changes.