React

Introduction to React - Difference between functio...

9.

When should you use functional components instead of class components in React?

When you only need to render simple UI elements.

When you don't need to manage state or lifecycle methods.

When you want to make use of React Hooks.

When you prefer class components over functional components.