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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
49
Other Decks in Programming
See All in Programming
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
210
書き換えて学ぶTemporal #fukts
pirosikick
2
340
t *testing.T は どこからやってくるの?
otakakot
1
890
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
270
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
320
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
960
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
420
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
470
Running Swift without an OS
kishikawakatsumi
0
880
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
750
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
110
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
420
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Fireside Chat
paigeccino
42
3.9k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.9k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Ruling the World: When Life Gets Gamed
codingconduct
0
220
Information Architects: The Missing Link in Design Systems
soysaucechin
0
910
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