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
0
31
React Context Api
King Rayhan
August 17, 2019
Tweet
Share
More Decks by King Rayhan
See All by King Rayhan
The weirdest part of JavaScript
kingrayhan
2
41
Other Decks in Programming
See All in Programming
PipeCDのプラグイン化で目指すところ
warashi
1
220
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
330
Rubyでやりたい駆動開発 / Ruby driven development
chobishiba
1
510
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
210
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
280
Hypervel - A Coroutine Framework for Laravel Artisans
albertcht
1
110
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
240
datadog dash 2025 LLM observability for reliability and stability
ivry_presentationmaterials
0
290
都市をデータで見るってこういうこと PLATEAU属性情報入門
nokonoko1203
1
580
Railsアプリケーションと パフォーマンスチューニング ー 秒間5万リクエストの モバイルオーダーシステムを支える事例 ー Rubyセミナー 大阪
falcon8823
4
1k
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
530
#QiitaBash MCPのセキュリティ
ryosukedtomita
0
470
Featured
See All Featured
BBQ
matthewcrist
89
9.7k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.4k
Unsuck your backbone
ammeep
671
58k
Producing Creativity
orderedlist
PRO
346
40k
Rails Girls Zürich Keynote
gr2m
94
14k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Code Reviewing Like a Champion
maltzj
524
40k
Music & Morning Musume
bryan
46
6.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
Into the Great Unknown - MozCon
thekraken
39
1.9k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
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