10.1. Introduction to Hooks
Introduction In this section, we’ll learn about the Introduction to Hooks in React. Hooks are a powerful feature that allows you to use state and lifecycle methods in functional components. Let’s follow the conversation between Geek and Gal to understand the basics of Hooks. React Hooks are an amazing addition to React that let you use state and lifecycle methods in functional components! Sounds interesting! But why were Hooks introduced in the first place?...