Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
zakkuri-redux
Search
tatsu
September 29, 2017
Technology
24
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
zakkuri-redux
brief explanation about redux
tatsu
September 29, 2017
Other Decks in Technology
See All in Technology
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
0
420
Refining Active Record
shugo
0
150
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
300
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
940
Gemini Intelligence 入門 ― AppFunctions と Gemini Nano
takuroabe
0
250
パッチ更新でterraform initが落ちた日
grimoh
1
140
分析AIエージェントを育てる、動く環境を育てる
codatum
1
1.1k
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
860
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
120
夫婦で子育てするための育児標準化
codmoninc
PRO
0
330
ストレスなくAIと付き合いたい!こんなときどうしてる?
namiki64
3
490
Featured
See All Featured
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
280
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Docker and Python
trallard
47
4.2k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
630
Fireside Chat
paigeccino
43
4.1k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Statistics for Hackers
jakevdp
799
230k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Transcript
Redux(ઙ) ΤεΩϡʔϏζϜٕࣾज़LT tatsu
͜Εʹؔͯ͠ޠΒͶͳΓ·͢·͍ Redux stateΛཧ͢ΔϑϨʔϜϫʔΫ react onlyͱݶΒͳ͍…ͱ͍͑reactͱηοτͰ༻͞ΕΔ͜ͱ͕ଟ͍Β͍͠ state?
ReduxͷϑϧΥʔ(Flow) store view action creator reducer ViewͷೖྗͳͲ͔ΒActionCreator͕ActionΛ࡞ɻ ࡞͞ΕͨActionΛStoreDispatch͠มߋΛ͑Δɻ StoreݱStateͱActionΛReducerʹ͠ɺ ฦ͖ͬͯͨ৽StateΛอ࣋͢Δɻ
ͦͯ͠Stateͷߋ৽ʹΑͬͯΠϕϯτ͕ΓViewͷߋ৽ͳͲ͕͞ΕΔɻ …͍ʁ
ϝϯόʔΛհ͢Δͥᾇ ~THE γϯϓϧγϦʔζ~ Action Creator ActionΛ࡞͢Δ Action ಈ࡞Λ࣋ͬͨΦϒδΣΫτ
ϝϯόʔΛհ͢Δͥᾈ Store StateΛҰݩཧ ԼهͷͷΛอ࣋orఏڙ State ΞϓϦέʔγϣϯͷঢ়ଶɻϑΥʔϜͷλϒͷબঢ়ଶͳͲɻ Dispatch StoreʹAction(͍ͨ͠ࣄ)Λ͑Δ Reducer ड͚औͬͨActionͱݱState͔Βɺͨͩ৽͍͠StateΛฦ͢
࠶ɿReduxͷϑϧΥʔ(Flow) store view action creator reducer ViewͷೖྗͳͲ͔ΒActionCreator͕ActionΛ࡞ɻ ࡞͞ΕͨActionΛStoreDispatch͠มߋΛ͑Δɻ StoreݱStateͱActionΛReducerʹ͠ɺ ฦ͖ͬͯͨ৽StateΛอ࣋͢Δɻ
ͦͯ͠Stateͷߋ৽ʹΑͬͯΠϕϯτ͕ΓViewͷߋ৽ͳͲ͕͞ΕΔɻ ҊͣΔΑΓ࢈Ή͕қ͠ʂ
༨ஊ mobxɹstateΛཧ͢ΔϑϨʔϜϫʔΫ https://qiita.com/Takepepe/items/8172333655442314eb55 react-navigationɹϧʔςΟϯάϥΠϒϥϦ https://reactnavigation.org/ formicɹϑΥʔϜͷϥΠϒϥϦ https://github.com/jamiecopeland/react-formic mobx+react-navigation http://www.workabroad.jp/posts/2206