What are the scenarios where using a class component is preferred over a function components? | Components | react Interview Questions | NextRound.in