Functional Component

A functional component is a React component written as a plain JavaScript function that returns JSX. It is the modern, standard way to write components and…