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
En esta página del sitio puede ver el video en línea React Context API. How Does it Work? State Management In ReactJS (2020 Web Development) de Duración hora minuto segunda en buena calidad , que subió el usuario An Object Is A 15 marzo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 101 veces y le gustó 4 a los espectadores. Disfruta viendo!