Pergunta de entrevista da empresa Cognizant

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