React Functional vs. Class Components
React gives us two ways of writing our components — functional components, and class components. In this blog, we will take a deep dive into the differences between the two, and the pros and cons of each.
First, what is a React Component?
React components are a way of defining a piece of UI into a reusable piece of code. A component is like a…