Fintros interview question

How to prevent the component from re-rendering in React JS?