6 mins read

Day 14: Understanding Context API in React

So far in this series, we’ve worked with React state using useState, useReducer, and even Custom Hooks. But there’s still a problem you might have noticed: When a piece of state is needed by multiple components at different levels, we end up passing props down multiple layers. This process is called prop drilling, and it […]