React Context API. How Does it Work? State Management In ReactJS (2020 Web Development)

Publicado em: 15 Março 2020
no canal de: An Object Is A
101
4

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  


Nesta página do site você pode assistir ao vídeo on-line React Context API. How Does it Work? State Management In ReactJS (2020 Web Development) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário An Object Is A 15 Março 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 101 vezes e gostou 4 espectadores. Boa visualização!