Functional vs Class Component in React
Functional Components Class Components A functional component is just a plain JavaScript function that accepts props as an argument and returns a React element. A class component requires you to extend from React. Component and create a render function that returns a React element. There is no render method used in functional components. It must […]