Cognizant interview question

How do you avoid re-rendering of a component? With useEffect second parameter, should ComponentUpdate