Different types of components, Hooks, Function Components VS Class Components — Before Getting into Hooks Before stepping into the basics of Hooks, it is important to understand how we got into them. As you may know, React lets you use two JavaScript structures to define components: Functions or Classes. Class Class component: a JavaScript class that includes a render method returning UI. It may set up…