Suche senden
Hochladen
Vuexと入力フォーム
•
2 gefällt mir
•
10,377 views
Joe_noh
Folgen
第9回 ペパボテックカンファレンスの発表資料です
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 60
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Recompacting your react application
Recompacting your react application
Greg Bergé
Higher-Order Components — Ilya Gelman
Higher-Order Components — Ilya Gelman
500Tech
JS Fest 2019. Glenn Reyes. With great power comes great React hooks!
JS Fest 2019. Glenn Reyes. With great power comes great React hooks!
JSFestUA
Egghead redux-cheat-sheet-3-2-1
Egghead redux-cheat-sheet-3-2-1
Augustin Bralley
Matteo Antony Mistretta - Refactoring into React hooks - Codemotion Rome 2019
Matteo Antony Mistretta - Refactoring into React hooks - Codemotion Rome 2019
Codemotion
UI 모듈화로 워라밸 지키기
UI 모듈화로 워라밸 지키기
NAVER SHOPPING
Modern JavaScript Engine Performance
Modern JavaScript Engine Performance
Catalin Dumitru
Go Beast Mode with Realtime Reactive Interfaces in Angular 2 and Firebase
Go Beast Mode with Realtime Reactive Interfaces in Angular 2 and Firebase
Lukas Ruebbelke
Empfohlen
Recompacting your react application
Recompacting your react application
Greg Bergé
Higher-Order Components — Ilya Gelman
Higher-Order Components — Ilya Gelman
500Tech
JS Fest 2019. Glenn Reyes. With great power comes great React hooks!
JS Fest 2019. Glenn Reyes. With great power comes great React hooks!
JSFestUA
Egghead redux-cheat-sheet-3-2-1
Egghead redux-cheat-sheet-3-2-1
Augustin Bralley
Matteo Antony Mistretta - Refactoring into React hooks - Codemotion Rome 2019
Matteo Antony Mistretta - Refactoring into React hooks - Codemotion Rome 2019
Codemotion
UI 모듈화로 워라밸 지키기
UI 모듈화로 워라밸 지키기
NAVER SHOPPING
Modern JavaScript Engine Performance
Modern JavaScript Engine Performance
Catalin Dumitru
Go Beast Mode with Realtime Reactive Interfaces in Angular 2 and Firebase
Go Beast Mode with Realtime Reactive Interfaces in Angular 2 and Firebase
Lukas Ruebbelke
Creating an Uber Clone - Part XXXX.pdf
Creating an Uber Clone - Part XXXX.pdf
ShaiAlmog1
Immutable Libraries for React
Immutable Libraries for React
stbaechler
Indeed My Jobs: A case study in ReactJS and Redux (Meetup talk March 2016)
Indeed My Jobs: A case study in ReactJS and Redux (Meetup talk March 2016)
indeedeng
Gutenberg sous le capot, modules réutilisables
Gutenberg sous le capot, modules réutilisables
Riad Benguella
ES6 patterns in the wild
ES6 patterns in the wild
Joe Morgan
Bindings: the zen of montage
Bindings: the zen of montage
Kris Kowal
Func up your code
Func up your code
Maciej Komorowski
Taming forms with React
Taming forms with React
GreeceJS
React 101
React 101
Casear Chu
Programmation fonctionnelle en JavaScript
Programmation fonctionnelle en JavaScript
Loïc Knuchel
React hooks
React hooks
Assaf Gannon
React lecture
React lecture
Christoffer Noring
첫 리액트 경험기
첫 리액트 경험기
석진 고
Unidirectional Data Flow with Reactor
Unidirectional Data Flow with Reactor
Jason Larsen
MVI - Managing State The Kotlin Way
MVI - Managing State The Kotlin Way
Zeyad Gasser
Structuring React.js Components
Structuring React.js Components
Bartek Witczak
4Developers 2018: Structuring React components (Bartłomiej Witczak)
4Developers 2018: Structuring React components (Bartłomiej Witczak)
PROIDEA
JS Lab2017_Lightning Talks_React Perfomance
JS Lab2017_Lightning Talks_React Perfomance
GeeksLab Odessa
React Performance
React Performance
Max Kudla
Higher Order Components and Render Props
Higher Order Components and Render Props
Nitish Phanse
パフォーマンス改善のためにやったこと・やらなかったこと
パフォーマンス改善のためにやったこと・やらなかったこと
Joe_noh
Vue.jsのユニットテスト
Vue.jsのユニットテスト
Joe_noh
Weitere ähnliche Inhalte
Ähnlich wie Vuexと入力フォーム
Creating an Uber Clone - Part XXXX.pdf
Creating an Uber Clone - Part XXXX.pdf
ShaiAlmog1
Immutable Libraries for React
Immutable Libraries for React
stbaechler
Indeed My Jobs: A case study in ReactJS and Redux (Meetup talk March 2016)
Indeed My Jobs: A case study in ReactJS and Redux (Meetup talk March 2016)
indeedeng
Gutenberg sous le capot, modules réutilisables
Gutenberg sous le capot, modules réutilisables
Riad Benguella
ES6 patterns in the wild
ES6 patterns in the wild
Joe Morgan
Bindings: the zen of montage
Bindings: the zen of montage
Kris Kowal
Func up your code
Func up your code
Maciej Komorowski
Taming forms with React
Taming forms with React
GreeceJS
React 101
React 101
Casear Chu
Programmation fonctionnelle en JavaScript
Programmation fonctionnelle en JavaScript
Loïc Knuchel
React hooks
React hooks
Assaf Gannon
React lecture
React lecture
Christoffer Noring
첫 리액트 경험기
첫 리액트 경험기
석진 고
Unidirectional Data Flow with Reactor
Unidirectional Data Flow with Reactor
Jason Larsen
MVI - Managing State The Kotlin Way
MVI - Managing State The Kotlin Way
Zeyad Gasser
Structuring React.js Components
Structuring React.js Components
Bartek Witczak
4Developers 2018: Structuring React components (Bartłomiej Witczak)
4Developers 2018: Structuring React components (Bartłomiej Witczak)
PROIDEA
JS Lab2017_Lightning Talks_React Perfomance
JS Lab2017_Lightning Talks_React Perfomance
GeeksLab Odessa
React Performance
React Performance
Max Kudla
Higher Order Components and Render Props
Higher Order Components and Render Props
Nitish Phanse
Ähnlich wie Vuexと入力フォーム
(20)
Creating an Uber Clone - Part XXXX.pdf
Creating an Uber Clone - Part XXXX.pdf
Immutable Libraries for React
Immutable Libraries for React
Indeed My Jobs: A case study in ReactJS and Redux (Meetup talk March 2016)
Indeed My Jobs: A case study in ReactJS and Redux (Meetup talk March 2016)
Gutenberg sous le capot, modules réutilisables
Gutenberg sous le capot, modules réutilisables
ES6 patterns in the wild
ES6 patterns in the wild
Bindings: the zen of montage
Bindings: the zen of montage
Func up your code
Func up your code
Taming forms with React
Taming forms with React
React 101
React 101
Programmation fonctionnelle en JavaScript
Programmation fonctionnelle en JavaScript
React hooks
React hooks
React lecture
React lecture
첫 리액트 경험기
첫 리액트 경험기
Unidirectional Data Flow with Reactor
Unidirectional Data Flow with Reactor
MVI - Managing State The Kotlin Way
MVI - Managing State The Kotlin Way
Structuring React.js Components
Structuring React.js Components
4Developers 2018: Structuring React components (Bartłomiej Witczak)
4Developers 2018: Structuring React components (Bartłomiej Witczak)
JS Lab2017_Lightning Talks_React Perfomance
JS Lab2017_Lightning Talks_React Perfomance
React Performance
React Performance
Higher Order Components and Render Props
Higher Order Components and Render Props
Mehr von Joe_noh
パフォーマンス改善のためにやったこと・やらなかったこと
パフォーマンス改善のためにやったこと・やらなかったこと
Joe_noh
Vue.jsのユニットテスト
Vue.jsのユニットテスト
Joe_noh
カラーミーAPIドキュメントの今後
カラーミーAPIドキュメントの今後
Joe_noh
サイクルOJTイントロダクション
サイクルOJTイントロダクション
Joe_noh
お産ウィークイントロダクション
お産ウィークイントロダクション
Joe_noh
モバイルアプリ研修イントロダクション
モバイルアプリ研修イントロダクション
Joe_noh
Webオペレーション研修イントロダクション
Webオペレーション研修イントロダクション
Joe_noh
Web開発研修イントロダクション
Web開発研修イントロダクション
Joe_noh
リーンキャンバス
リーンキャンバス
Joe_noh
もっとgit
もっとgit
Joe_noh
できないことはPortで外注
できないことはPortで外注
Joe_noh
DBにseedするライブラリつくった
DBにseedするライブラリつくった
Joe_noh
やってみた -URL外形監視-
やってみた -URL外形監視-
Joe_noh
Elixirだ 第6回
Elixirだ 第6回
Joe_noh
Elixirだ 第5回
Elixirだ 第5回
Joe_noh
Elixirだ 第4回
Elixirだ 第4回
Joe_noh
Elixirだ 第3回
Elixirだ 第3回
Joe_noh
Elixirだ 第2回
Elixirだ 第2回
Joe_noh
Elixirだ 第1回強化版 後半
Elixirだ 第1回強化版 後半
Joe_noh
Elixirだ 第1回強化版 前半
Elixirだ 第1回強化版 前半
Joe_noh
Mehr von Joe_noh
(20)
パフォーマンス改善のためにやったこと・やらなかったこと
パフォーマンス改善のためにやったこと・やらなかったこと
Vue.jsのユニットテスト
Vue.jsのユニットテスト
カラーミーAPIドキュメントの今後
カラーミーAPIドキュメントの今後
サイクルOJTイントロダクション
サイクルOJTイントロダクション
お産ウィークイントロダクション
お産ウィークイントロダクション
モバイルアプリ研修イントロダクション
モバイルアプリ研修イントロダクション
Webオペレーション研修イントロダクション
Webオペレーション研修イントロダクション
Web開発研修イントロダクション
Web開発研修イントロダクション
リーンキャンバス
リーンキャンバス
もっとgit
もっとgit
できないことはPortで外注
できないことはPortで外注
DBにseedするライブラリつくった
DBにseedするライブラリつくった
やってみた -URL外形監視-
やってみた -URL外形監視-
Elixirだ 第6回
Elixirだ 第6回
Elixirだ 第5回
Elixirだ 第5回
Elixirだ 第4回
Elixirだ 第4回
Elixirだ 第3回
Elixirだ 第3回
Elixirだ 第2回
Elixirだ 第2回
Elixirだ 第1回強化版 後半
Elixirだ 第1回強化版 後半
Elixirだ 第1回強化版 前半
Elixirだ 第1回強化版 前半
Kürzlich hochgeladen
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
Khem
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
Enterprise Knowledge
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
Kürzlich hochgeladen
(20)
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Slack Application Development 101 Slides
Slack Application Development 101 Slides
Vuexと入力フォーム
1.
2.
3.
4.
5.
6.
Components Vuex Actions Mutations State Components Dispatch Commit MutateRender
7.
Component ComponentComponent Component State :user="user" :user="user"
8.
Component ComponentComponent Component EventBus.$emit Event Bus EventBus.$on
9.
Components Actions Mutations State Components methods: { onClickTheButton ()
{ const payload = { ... } this.$store.dispatch( 'theAction', payload, } } }
10.
Components Actions Mutations State Components actions: { theAction (context,
payload) { const payload = { ... } context.commit( 'theMutation', payload, } } }
11.
Components Actions Mutations State Components mutations: { theMutation (state,
payload) { state.foo = payload.foo } }
12.
Components Actions Mutations State Components getters: { theGetter (state)
{ if (state.foo.bar) { return 'Bar' } else { return 'Baz' } } } // getter
13.
14.
15.
<input v-model="profile.name"> computed: { profile
() { return this.$store.state.profile } }
16.
Components Actions Mutations State Components v-model
17.
new Vuex.Store({ strict: process.env.NODE_ENV
!== ‘production’ })
18.
<input :value="name" @input="updateName"> computed:
{ name () { return this.$store.state.profile.name } }, methods: { updateName (e) { this.$store.commit('updateName', e.target.value) } }
19.
mutations: { updateName (state,
name) { state.profile.name = name } }
20.
Components Actions Mutations State Components @input="updateName" :value="name"
21.
<input v-model="name"> computed: { name:
{ get () { return this.$store.state.profile.name }, set (value) { this.$store.commit('updateName', value) } } }
22.
Components Actions Mutations State Components set(value) get()
23.
24.
<form @submit.prevent="onSubmit"> <input v-model="name"> </form> computed:
{ name: { ... } } methods: { onSubmit () { this.$store.dispatch('submitProfile', profile) } }
25.
Components Actions Mutations State Components set(value) get()
26.
Components Actions Mutations State Components onSubmit
27.
28.
<input v-model="name"> computed: { name:
{ get () { ... }, set (value) { ... } } } mutations: { updateName (state, name) { ... } }
29.
<input v-model="name"> <input v-model="age"> computed:
{ name: { ... }, age: { ... } } mutations: { updateName (state, name) { ... } updateAge (state, age) { ... } }
30.
31.
<input v-model="name"> <input v-model="age"> computed:
{ name: { ... }, age: { ... } } mutations: { updateName (state, name) { ... } updateAge (state, age) { ... } }
32.
<input v-model="name"> <input v-model="age"> computed:
{ name: { ... }, age: { ... } } mutations: { updateName (state, name) { ... } updateAge (state, age) { ... } }
33.
<input v-model="name"> <input v-model="age"> computed:
{ name: { ... }, age: { ... } } mutations: { updateName (state, name) { ... } updateAge (state, age) { ... } }
34.
computed: { ...mapTwoWayProperties(['name', 'age'],
options) } computed: { name: { get() { ... }, set (val) { ... } } age: { get() { ... }, set (val) { ... } } }
35.
mutations: { mutateEditing (state,
{key, value}) { state.profile[key] = value }, ... }
36.
37.
38.
mutations: { mutateEditing (state,
{key, value}) { state.profile[key] = value } }
39.
mutations: { mutateEditing (state,
????) { state.profile.pets[1].name = value } }
40.
Components Actions Mutations State Components set(value) get()
41.
computed: { ...mapTwoWayProperties(['name', 'age'],
options) } computed: { name: { get() { ... }, set (val) { ... } } age: { get() { ... }, set (val) { ... } } }
42.
computed: { ...mapTwoWayProperties(['name', 'age'],
options) } computed: { name: { get() { ... }, set (val) { ... } } age: { get() { ... }, set (val) { ... } } }
43.
44.
45.
46.
<input v-model="profile.name"> <input v-model="profile.age"> <div
v-for="pet in profile.pets"> <input v-model="pet.name"> </div> computed: { profile () { return this.$store.state.profile } }
47.
48.
Components Actions Mutations State Components v-model
49.
50.
state: { profile: {} }
51.
state: { profile: {}, editingProfile:
{} }
52.
state: { profile: {},
// valid editingProfile: {} // invalid ? }
53.
<input v-model="profile.name"> data ()
{ return { profile: { name: "" } } }
54.
55.
56.
Components Actions Mutations State Components fetchAddress(zipCode) complementEditingAddress Address
57.
Components Actions Mutations State Components fetchAddress(zipCode) Promise<Address> Address
58.
Components Actions Mutations State Components fetchAddress(zipCode) Address
Jetzt herunterladen