Components in React JS
As we have discussed, React is a Component-based library. So in React, we create several components and integrate them under one entity but they act individually.
Updation on one component will not affect other components. React has two types of Component:
1. Functional Component.
2. Class Component.