As ReactJS Web developers, the most important part of any (more than simple)web app is state.
The normal way of handling state in ReactJS is by passing props DOWN the tree.
This works for most use cases.
In a large tree with many branches, this can get convoluted.
The React Context API lets us simplify how state is handled.
We can elevate local state to a global state so multiple components can have access to the same data.
I'll take you through creating a place to store global state, how we connect to the global state, and how we change the global state.
Get a Basic ReactJS App Up and Running: • How Does ReactJS Work? (2020 Web Deve...
How Does ReactJS Handle Props Normally: • What is ReactJS? (2020 Web Development)
Time Stamps:
2:24 - Elevating local state to global state
4:17 - Consuming from the global state from a function
9:29 - Consuming from the global state from a class
10:51 - Changing global state
Get You-to-Bit! : https://bit.ly/2H3Ixml ❤️
Subscribe to my channel: / @anobj
If you find value in what I do, think about supporting my channel: ❤️
Paypal: https://www.paypal.me/anobjisa
Bitcoin: 3H4NKKwPdbiE5Gtc3Uk2DiwszqHhrRbmKK
Ethereum: 0x48702412F448a27be03836fb6FE6456603668030
Litecoin: MNJ4uv3GD4r62VpQ8rHX1Pj1ihWCj74hCK
Find me here:
Bitchute: https://www.bitchute.com/channel/gPUm...
Lbry: lbry://@an_object_is_a#7
Twitter: / anobjectisa1
Minds: https://www.minds.com/an_object_is_a/
Instagram: / an_object_is_a
On this page of the site you can watch the video online React Context API. How Does it Work? State Management In ReactJS (2020 Web Development) with a duration of hours minute second in good quality, which was uploaded by the user An Object Is A 15 March 2020, share the link with friends and acquaintances, this video has already been watched 101 times on youtube and it was liked by 4 viewers. Enjoy your viewing!