Deel interview question

Give 2 ways to prevent components from re-rendering.