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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
King Rayhan
August 17, 2019
Programming
39
0
Share
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
53
Other Decks in Programming
See All in Programming
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
240
IBM Bobを活用したレガシーアプリの最新化
oniak3ibm
PRO
1
170
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
1
610
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
150
JJUG CCC 2026 Spring: JSpecify で実現する Kotlin フレンドリーな Java API 設計
ternbusty
1
140
New "Type" system on PicoRuby
pocke
1
450
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
370
Technical Debt: Understanding it Rightly, Engaging it Rightly #LaravelLiveJP
shogogg
0
190
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
3.2k
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
3
510
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
1.1k
AIとASP.NET Coreで雑Webアプリを作った話
mayuki
0
290
Featured
See All Featured
Evolving SEO for Evolving Search Engines
ryanjones
0
210
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.4k
AI: The stuff that nobody shows you
jnunemaker
PRO
8
690
What's in a price? How to price your products and services
michaelherold
247
13k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
200
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
150
Designing for Performance
lara
611
70k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
130
For a Future-Friendly Web
brad_frost
183
10k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
270
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
280
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