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
zakkuri-redux
Search
tatsu
September 29, 2017
Technology
0
23
zakkuri-redux
brief explanation about redux
tatsu
September 29, 2017
Tweet
Share
Other Decks in Technology
See All in Technology
ランサムウェア対策としてのpnpm導入のススメ
ishikawa_satoru
0
160
SRE Enabling戦記 - 急成長する組織にSREを浸透させる戦いの歴史
markie1009
0
130
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
660
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.1k
Frontier Agents (Kiro autonomous agent / AWS Security Agent / AWS DevOps Agent) の紹介
msysh
3
180
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.3k
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
1.9k
【Ubie】AIを活用した広告アセット「爆速」生成事例 | AI_Ops_Community_Vol.2
yoshiki_0316
1
100
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.5k
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
220
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
230
Featured
See All Featured
How to build a perfect <img>
jonoalderson
1
4.9k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
130
Building an army of robots
kneath
306
46k
Technical Leadership for Architectural Decision Making
baasie
1
250
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Test your architecture with Archunit
thirion
1
2.2k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
76
Git: the NoSQL Database
bkeepers
PRO
432
66k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
96
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
52k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
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