The Future of Building React Components

React Hooks & Functional Components

Until now, ‘stateful’ logic or data that changes within a React application was tightly attached to a class-based component. However, what this led to was a complex tree of nested components which made passing data and props quite confusing as the application would grow in size and complexity. Hooks changed everything by giving access to lower-level features of React outside the context of the class-based component.