How to use useContext Hooks in React || Global State Managament in React

Опубликовано: 11 Ноябрь 2024
на канале: Bug Free
29
1

Hey Guys, In this video you will learn how to use useContext hooks in react. UseContext can be really helpful when multiple components need the same data instead of passing data to each component. UseContext will use one parent component to keep all the states and other components can use it.

Timeline:
0:00 - Intro
0:11 - useState
2:19 - Context Provider
4:19 - Passing main function as child
4:58 - Using useContext in App.js
6:03 - Array of items
6:48 - Overview
7:50 - Outro

#useContext #reacthooks #reactjs