Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
React Context Api
Search
King Rayhan
August 17, 2019
Programming
39
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
React Context Api
King Rayhan
August 17, 2019
More Decks by King Rayhan
See All by King Rayhan
The weirdest part of JavaScript
kingrayhan
2
54
Other Decks in Programming
See All in Programming
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
160
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
250
What's New in Android 2026
veronikapj
0
260
Detecting Compromised CI with eBPF and Cilium Tetragon
lizrice
0
170
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
18k
【QA Test Talk Vol.8】AI-DLC による Whole Team Approach の加速
pkshadeck
PRO
0
140
Built Our Own Background Agent at LayerX
layerx
PRO
9
5.1k
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
210
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
500
Go 1.27 における memory allocation の高速化
andpad
0
120
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
160
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
180
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
The agentic SEO stack - context over prompts
schlessera
0
860
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
Designing for humans not robots
tammielis
254
26k
Raft: Consensus for Rubyists
vanstee
141
7.6k
Paper Plane
katiecoart
PRO
2
52k
Context Engineering - Making Every Token Count
addyosmani
9
1k
エンジニアに許された特別な時間の終わり
watany
108
250k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.6k
GitHub's CSS Performance
jonrohan
1033
470k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.9k
The Curious Case for Waylosing
cassininazir
1
450
Transcript
Context API
[ … data and methods] Context <Header /> <TodoWritter />
<Todos /> <Filter /> Share data GLOBALLY
All components can access context values
Provider Component { !, ", ⚛ , $ } Anything
here can be accessible from any children component
functional Class
All components can access provider’s value prop
Access context via render props
Access context context Type Access context by this property Only
works on class component
By renderProps way we can access multiple context
Access context in functional component
We can access multiple context in functional component by useContext()
method