Submit Search
Upload
Better React state management with Redux
•
Download as PPTX, PDF
•
3 likes
•
645 views
Maurice De Beijer [MVP]
Follow
Workshop at BoostJS abut doing better React state management with Redux.
Read less
Read more
Technology
Report
Share
Report
Share
1 of 78
Download now
Recommended
ProvJS: Six Months of ReactJS and Redux
ProvJS: Six Months of ReactJS and Redux
Thom Nichols
Let's discover React and Redux with TypeScript
Let's discover React and Redux with TypeScript
Mathieu Savy
Designing applications with Redux
Designing applications with Redux
Fernando Daciuk
State Models for React with Redux
State Models for React with Redux
Stephan Schmidt
Redux js
Redux js
Nils Petersohn
Building React Applications with Redux
Building React Applications with Redux
FITC
Let's Redux!
Let's Redux!
Joseph Chiang
React & Redux
React & Redux
Federico Bond
Recommended
ProvJS: Six Months of ReactJS and Redux
ProvJS: Six Months of ReactJS and Redux
Thom Nichols
Let's discover React and Redux with TypeScript
Let's discover React and Redux with TypeScript
Mathieu Savy
Designing applications with Redux
Designing applications with Redux
Fernando Daciuk
State Models for React with Redux
State Models for React with Redux
Stephan Schmidt
Redux js
Redux js
Nils Petersohn
Building React Applications with Redux
Building React Applications with Redux
FITC
Let's Redux!
Let's Redux!
Joseph Chiang
React & Redux
React & Redux
Federico Bond
Getting started with Redux js
Getting started with Redux js
Citrix
Introduction to React & Redux
Introduction to React & Redux
Boris Dinkevich
React + Redux. Best practices
React + Redux. Best practices
Clickky
React + Redux + TypeScript === ♥
React + Redux + TypeScript === ♥
Remo Jansen
Using redux
Using redux
Jonas Ohlsson Aden
React state managmenet with Redux
React state managmenet with Redux
Vedran Blaženka
React.js and Redux overview
React.js and Redux overview
Alex Bachuk
Introduction to Redux
Introduction to Redux
Ignacio Martín
React & redux
React & redux
Cédric Hartland
Redux training
Redux training
dasersoft
Angular redux
Angular redux
Nir Kaufman
React / Redux Architectures
React / Redux Architectures
Vinícius Ribeiro
React for Dummies
React for Dummies
Mitch Chen
Academy PRO: React JS. Redux & Tooling
Academy PRO: React JS. Redux & Tooling
Binary Studio
React, Flux and a little bit of Redux
React, Flux and a little bit of Redux
Ny Fanilo Andrianjafy, B.Eng.
Introduction to react and redux
Introduction to react and redux
Cuong Ho
Switch to React.js from AngularJS developer
Switch to React.js from AngularJS developer
Eugene Zharkov
Better web apps with React and Redux
Better web apps with React and Redux
Ali Sa'o
React & Redux
React & Redux
Craig Jolicoeur
React Lifecycle and Reconciliation
React Lifecycle and Reconciliation
Zhihao Li
Jmmatthewslaw
Jmmatthewslaw
jmmatthewslawpa
Hayalimdeki Okulum
Hayalimdeki Okulum
Şule Eşgi
More Related Content
What's hot
Getting started with Redux js
Getting started with Redux js
Citrix
Introduction to React & Redux
Introduction to React & Redux
Boris Dinkevich
React + Redux. Best practices
React + Redux. Best practices
Clickky
React + Redux + TypeScript === ♥
React + Redux + TypeScript === ♥
Remo Jansen
Using redux
Using redux
Jonas Ohlsson Aden
React state managmenet with Redux
React state managmenet with Redux
Vedran Blaženka
React.js and Redux overview
React.js and Redux overview
Alex Bachuk
Introduction to Redux
Introduction to Redux
Ignacio Martín
React & redux
React & redux
Cédric Hartland
Redux training
Redux training
dasersoft
Angular redux
Angular redux
Nir Kaufman
React / Redux Architectures
React / Redux Architectures
Vinícius Ribeiro
React for Dummies
React for Dummies
Mitch Chen
Academy PRO: React JS. Redux & Tooling
Academy PRO: React JS. Redux & Tooling
Binary Studio
React, Flux and a little bit of Redux
React, Flux and a little bit of Redux
Ny Fanilo Andrianjafy, B.Eng.
Introduction to react and redux
Introduction to react and redux
Cuong Ho
Switch to React.js from AngularJS developer
Switch to React.js from AngularJS developer
Eugene Zharkov
Better web apps with React and Redux
Better web apps with React and Redux
Ali Sa'o
React & Redux
React & Redux
Craig Jolicoeur
React Lifecycle and Reconciliation
React Lifecycle and Reconciliation
Zhihao Li
What's hot
(20)
Getting started with Redux js
Getting started with Redux js
Introduction to React & Redux
Introduction to React & Redux
React + Redux. Best practices
React + Redux. Best practices
React + Redux + TypeScript === ♥
React + Redux + TypeScript === ♥
Using redux
Using redux
React state managmenet with Redux
React state managmenet with Redux
React.js and Redux overview
React.js and Redux overview
Introduction to Redux
Introduction to Redux
React & redux
React & redux
Redux training
Redux training
Angular redux
Angular redux
React / Redux Architectures
React / Redux Architectures
React for Dummies
React for Dummies
Academy PRO: React JS. Redux & Tooling
Academy PRO: React JS. Redux & Tooling
React, Flux and a little bit of Redux
React, Flux and a little bit of Redux
Introduction to react and redux
Introduction to react and redux
Switch to React.js from AngularJS developer
Switch to React.js from AngularJS developer
Better web apps with React and Redux
Better web apps with React and Redux
React & Redux
React & Redux
React Lifecycle and Reconciliation
React Lifecycle and Reconciliation
Viewers also liked
Jmmatthewslaw
Jmmatthewslaw
jmmatthewslawpa
Hayalimdeki Okulum
Hayalimdeki Okulum
Şule Eşgi
4 pilareseducación
4 pilareseducación
Carla Diaz Diaz
My journey from Fragile, to Agile and now DevOps
My journey from Fragile, to Agile and now DevOps
Jason Man
DigiRap International Photography Award Winners 2016: Category Travel (Colour)
DigiRap International Photography Award Winners 2016: Category Travel (Colour)
maditabalnco
The busy developer guide to Docker
The busy developer guide to Docker
Maurice De Beijer [MVP]
Из глубины седых веков (изучение нравственного наследия)
Из глубины седых веков (изучение нравственного наследия)
DROFA-VENTANA
コメントスパム対策から始まったWordPress生活
コメントスパム対策から始まったWordPress生活
毅 佐藤
Questionnaire results
Questionnaire results
asmediac16
Confined space – hazards –risk –control measures
Confined space – hazards –risk –control measures
Anand Prakash
Ab censeñanza ddhh
Ab censeñanza ddhh
Carla Diaz Diaz
RxJS + Redux + React = Amazing
RxJS + Redux + React = Amazing
Jay Phelps
React JS and why it's awesome
React JS and why it's awesome
Andrew Hull
Sim, windi silviana, hapzi ali, sistem pengambilan keputusan, universitas mer...
Sim, windi silviana, hapzi ali, sistem pengambilan keputusan, universitas mer...
windi silviana
Deep freezer
Deep freezer
servicesdeep
3Com 160036000
3Com 160036000
savomir
Os scheduling Algorithms
Os scheduling Algorithms
Neelamani Samal
Viewers also liked
(17)
Jmmatthewslaw
Jmmatthewslaw
Hayalimdeki Okulum
Hayalimdeki Okulum
4 pilareseducación
4 pilareseducación
My journey from Fragile, to Agile and now DevOps
My journey from Fragile, to Agile and now DevOps
DigiRap International Photography Award Winners 2016: Category Travel (Colour)
DigiRap International Photography Award Winners 2016: Category Travel (Colour)
The busy developer guide to Docker
The busy developer guide to Docker
Из глубины седых веков (изучение нравственного наследия)
Из глубины седых веков (изучение нравственного наследия)
コメントスパム対策から始まったWordPress生活
コメントスパム対策から始まったWordPress生活
Questionnaire results
Questionnaire results
Confined space – hazards –risk –control measures
Confined space – hazards –risk –control measures
Ab censeñanza ddhh
Ab censeñanza ddhh
RxJS + Redux + React = Amazing
RxJS + Redux + React = Amazing
React JS and why it's awesome
React JS and why it's awesome
Sim, windi silviana, hapzi ali, sistem pengambilan keputusan, universitas mer...
Sim, windi silviana, hapzi ali, sistem pengambilan keputusan, universitas mer...
Deep freezer
Deep freezer
3Com 160036000
3Com 160036000
Os scheduling Algorithms
Os scheduling Algorithms
Similar to Better React state management with Redux
The new React
The new React
Maurice De Beijer [MVP]
The productive developer guide to React
The productive developer guide to React
Maurice De Beijer [MVP]
Why I am hooked on the future of React
Why I am hooked on the future of React
Maurice De Beijer [MVP]
Building large and scalable mission critical applications with React
Building large and scalable mission critical applications with React
Maurice De Beijer [MVP]
I am hooked on React
I am hooked on React
Maurice De Beijer [MVP]
Why I am hooked on the future of React
Why I am hooked on the future of React
Maurice De Beijer [MVP]
Building Reliable Applications Using React, .NET & Azure
Building Reliable Applications Using React, .NET & Azure
Maurice De Beijer [MVP]
Building high-performance web applications with Preact
Building high-performance web applications with Preact
Maurice De Beijer [MVP]
Building high performance web applications
Building high performance web applications
Maurice De Beijer [MVP]
Building high performance web applications
Building high performance web applications
Maurice De Beijer [MVP]
React gsg presentation with ryan jung & elias malik
React gsg presentation with ryan jung & elias malik
Lama K Banna
Building high performance web applications
Building high performance web applications
Maurice De Beijer [MVP]
Building reliable applications with React, C#, and Azure
Building reliable applications with React, C#, and Azure
Maurice De Beijer [MVP]
Jaoo Michael Neale 09
Jaoo Michael Neale 09
Michael Neale
React suspense, not just for Alfred Hitchcock
React suspense, not just for Alfred Hitchcock
Maurice De Beijer [MVP]
React js programming concept
React js programming concept
Tariqul islam
Web Performance & Latest in React
Web Performance & Latest in React
Talentica Software
Painless Migrations from Backbone to React/Redux
Painless Migrations from Backbone to React/Redux
Jim Sullivan
Continuous Deployment of your Application @JUGtoberfest
Continuous Deployment of your Application @JUGtoberfest
Marcin Grzejszczak
0900 learning-react
0900 learning-react
RohitYadav696
Similar to Better React state management with Redux
(20)
The new React
The new React
The productive developer guide to React
The productive developer guide to React
Why I am hooked on the future of React
Why I am hooked on the future of React
Building large and scalable mission critical applications with React
Building large and scalable mission critical applications with React
I am hooked on React
I am hooked on React
Why I am hooked on the future of React
Why I am hooked on the future of React
Building Reliable Applications Using React, .NET & Azure
Building Reliable Applications Using React, .NET & Azure
Building high-performance web applications with Preact
Building high-performance web applications with Preact
Building high performance web applications
Building high performance web applications
Building high performance web applications
Building high performance web applications
React gsg presentation with ryan jung & elias malik
React gsg presentation with ryan jung & elias malik
Building high performance web applications
Building high performance web applications
Building reliable applications with React, C#, and Azure
Building reliable applications with React, C#, and Azure
Jaoo Michael Neale 09
Jaoo Michael Neale 09
React suspense, not just for Alfred Hitchcock
React suspense, not just for Alfred Hitchcock
React js programming concept
React js programming concept
Web Performance & Latest in React
Web Performance & Latest in React
Painless Migrations from Backbone to React/Redux
Painless Migrations from Backbone to React/Redux
Continuous Deployment of your Application @JUGtoberfest
Continuous Deployment of your Application @JUGtoberfest
0900 learning-react
0900 learning-react
More from Maurice De Beijer [MVP]
Practice TypeScript Techniques Building React Server Components App
Practice TypeScript Techniques Building React Server Components App
Maurice De Beijer [MVP]
A foolproof Way to Estimate a Software Project
A foolproof Way to Estimate a Software Project
Maurice De Beijer [MVP]
Surati Tech Talks 2022 / Build reliable Svelte applications using Cypress
Surati Tech Talks 2022 / Build reliable Svelte applications using Cypress
Maurice De Beijer [MVP]
Build reliable Svelte applications using Cypress
Build reliable Svelte applications using Cypress
Maurice De Beijer [MVP]
Building Reliable Applications Using React, .NET & Azure
Building Reliable Applications Using React, .NET & Azure
Maurice De Beijer [MVP]
Concurrent Rendering Adventures in React 18
Concurrent Rendering Adventures in React 18
Maurice De Beijer [MVP]
Why I am hooked on the future of React
Why I am hooked on the future of React
Maurice De Beijer [MVP]
Building reliable web applications using Cypress
Building reliable web applications using Cypress
Maurice De Beijer [MVP]
Getting started with React Suspense and concurrent rendering
Getting started with React Suspense and concurrent rendering
Maurice De Beijer [MVP]
From zero to hero with the Reactive extensions for JavaScript
From zero to hero with the Reactive extensions for JavaScript
Maurice De Beijer [MVP]
From zero to hero with the reactive extensions for JavaScript
From zero to hero with the reactive extensions for JavaScript
Maurice De Beijer [MVP]
Create flexible React applications using GraphQL apis
Create flexible React applications using GraphQL apis
Maurice De Beijer [MVP]
Create flexible react applications using GraphQL API's
Create flexible react applications using GraphQL API's
Maurice De Beijer [MVP]
Docker for a .NET web developer
Docker for a .NET web developer
Maurice De Beijer [MVP]
From zero to hero with the reactive extensions for JavaScript
From zero to hero with the reactive extensions for JavaScript
Maurice De Beijer [MVP]
Docker containers on Windows
Docker containers on Windows
Maurice De Beijer [MVP]
From zero to hero with the reactive extensions for java script
From zero to hero with the reactive extensions for java script
Maurice De Beijer [MVP]
Tooling for the productive front end developer
Tooling for the productive front end developer
Maurice De Beijer [MVP]
More from Maurice De Beijer [MVP]
(18)
Practice TypeScript Techniques Building React Server Components App
Practice TypeScript Techniques Building React Server Components App
A foolproof Way to Estimate a Software Project
A foolproof Way to Estimate a Software Project
Surati Tech Talks 2022 / Build reliable Svelte applications using Cypress
Surati Tech Talks 2022 / Build reliable Svelte applications using Cypress
Build reliable Svelte applications using Cypress
Build reliable Svelte applications using Cypress
Building Reliable Applications Using React, .NET & Azure
Building Reliable Applications Using React, .NET & Azure
Concurrent Rendering Adventures in React 18
Concurrent Rendering Adventures in React 18
Why I am hooked on the future of React
Why I am hooked on the future of React
Building reliable web applications using Cypress
Building reliable web applications using Cypress
Getting started with React Suspense and concurrent rendering
Getting started with React Suspense and concurrent rendering
From zero to hero with the Reactive extensions for JavaScript
From zero to hero with the Reactive extensions for JavaScript
From zero to hero with the reactive extensions for JavaScript
From zero to hero with the reactive extensions for JavaScript
Create flexible React applications using GraphQL apis
Create flexible React applications using GraphQL apis
Create flexible react applications using GraphQL API's
Create flexible react applications using GraphQL API's
Docker for a .NET web developer
Docker for a .NET web developer
From zero to hero with the reactive extensions for JavaScript
From zero to hero with the reactive extensions for JavaScript
Docker containers on Windows
Docker containers on Windows
From zero to hero with the reactive extensions for java script
From zero to hero with the reactive extensions for java script
Tooling for the productive front end developer
Tooling for the productive front end developer
Recently uploaded
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
Nicole Novielli
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
MounikaPolabathina
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Manik S Magar
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
Rick Flair
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
Raghuram Pandurangan
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
LoriGlavin3
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
BkGupta21
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
HarshalMandlekar2
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
LoriGlavin3
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
LoriGlavin3
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
LoriGlavin3
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
LoriGlavin3
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
2toLead Limited
Recently uploaded
(20)
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
Better React state management with Redux
1.
Better React state management with
Redux Maurice de Beijer @mauricedb @react_tutorial
2.
Workshop goal Short recap:
what is React? Learn the three principals of Redux Use the different Redux components Unit testing Redux code Adding Redux to a React application Use Redux middleware © ABL - The Problem Solver 2
3.
Maurice de
Beijer The Problem Solver Microsoft Azure MVP Freelance developer/instructor Twitter: @mauricedb and @React_Tutorial Web: http://www.TheProblemSolver.nl E-mail: maurice.de.beijer@gmail.com 3
4.
Follow along Git
repository: https://github.com/mauricedb/nitflex-redux Slides: http://bit.ly/react-redux-workshop © ABL - The Problem Solver 4
5.
Type it out by
hand? © ABL - The Problem Solver 5 “Typing it drills it into your brain much better than simply copying and pasting it.You're forming new neuron pathways.Those pathways are going to help you in the future. Help them out now!”
6.
Prerequisites Install Node &
NPM © ABL - The Problem Solver 6
7.
Install Node.js & NPM © ABL
- The Problem Solver 7
8.
Short recap What is
React? © ABL - The Problem Solver 8
9.
React © ABL -
The Problem Solver 9 “React is a JavaScript library for building user interfaces” - Facebook -
10.
React features React uses
a component based architecture Components are written using the JSX syntax React likes a one way data flow React uses a virtual DOM © ABL - The Problem Solver 10
11.
React Component © ABL -
The Problem Solver 11
12.
Nitflex The sample application ©
ABL - The Problem Solver 12
13.
Nitflex © ABL -
The Problem Solver 13
14.
Main components © ABL -
The Problem Solver 14 Application Login Main Page Header Billboard Genre List Genre* Movie* Expanded Movie Playing Movie
15.
Stateful components © ABL -
The Problem Solver 15 Application Login Main Page Header Billboard Genre List Genre* Movie* Expanded Movie Playing Movie
16.
Clone Nitflex & NPM install ©
ABL - The Problem Solver 16
17.
Redux © ABL -
The Problem Solver 17
18.
Redux © ABL -
The Problem Solver 18 “Redux is a predictable state container for JavaScript apps” - Dan Abramov -
19.
Three principals of Redux Single
source of truth State is read-only Changes are made with pure functions © ABL - The Problem Solver 19
20.
Single source of truth
The application state is stored in a single location Do not scatter the state over lots of components A single state location makes it easier to reason about and debug your application © ABL - The Problem Solver 20
21.
State is read-only The
state objects are never changed by the application Every state change is the result of an action being dispatched to the store This action describes the intended state change © ABL - The Problem Solver 21
22.
Changes with pure functions Reducers
are pure functions that take the current state and an action as input and return a new state object The previous state object is never modified © ABL - The Problem Solver 22
23.
UI versus App state
Redux should be used for application state. Do not store UI state in Redux! © ABL - The Problem Solver 23
24.
Login example © ABL -
The Problem Solver 24
25.
Installing Redux © ABL -
The Problem Solver 25
26.
ReduxComponents © ABL -
The Problem Solver 26
27.
Redux Components Actions Reducers
The store © ABL - The Problem Solver 27
28.
Login action © ABL -
The Problem Solver 28
29.
Login reducer © ABL -
The Problem Solver 29
30.
combineReducers © ABL -
The Problem Solver 30
31.
Unit testing © ABL
- The Problem Solver 31
32.
Unit test the action
creator © ABL - The Problem Solver 32
33.
Unit test the reducer ©
ABL - The Problem Solver 33
34.
Redux and React ©
ABL - The Problem Solver 34
35.
Redux and React The NPM
react-redux package contains the React bindings for Redux The <Provider> component makes the Redux store available The connect() function connects React components to the Redux store use in <Provider> © ABL - The Problem Solver 35
36.
Create store © ABL
- The Problem Solver 36
37.
Dispatch login action © ABL
- The Problem Solver 37
38.
Get the user from
the store © ABL - The Problem Solver 38
39.
Cleanup app-container.jsx Remove
user and loginAsUser() app-presentation.jsx Remove loginAsUser() © ABL - The Problem Solver 39
40.
Redux Middleware © ABL
- The Problem Solver 40
41.
Redux Middleware © ABL -
The Problem Solver 41 “Redux middleware provides a third-party extension point between dispatching an action, and the moment it reaches the reducer” - Dan Abramov -
42.
Installing redux-thunk © ABL -
The Problem Solver 42
43.
Redux-Thunk © ABL -
The Problem Solver 43
44.
What is a Thunk? ©
ABL - The Problem Solver 44 “A thunk is a subroutine that is created, often automatically, to assist a call to another subroutine” -Wikipedia -
45.
Configure Thunk Middleware © ABL -
The Problem Solver 45
46.
Update the Actions © ABL -
The Problem Solver 46
47.
Add movies reducer © ABL
- The Problem Solver 47
48.
Update the reducers index.js © ABL
- The Problem Solver 48
49.
Extract movies from store © ABL -
The Problem Solver 49
50.
Cleanup app-container.jsx Remove
allMovies and passing movies to AppPresentation © ABL - The Problem Solver 50
51.
Redux DevTools © ABL
- The Problem Solver 51
52.
Redux DevTools © ABL -
The Problem Solver 52
53.
Redux DevTools © ABL -
The Problem Solver 53
54.
Remember the user ©
ABL - The Problem Solver 54
55.
Remember the user © ABL
- The Problem Solver 55
56.
Playing and stopping movies ©
ABL - The Problem Solver 56
57.
Add actions © ABL
- The Problem Solver 57
58.
Update reducer © ABL -
The Problem Solver 58
59.
Start playing © ABL -
The Problem Solver 59
60.
Retrieve the playing movie from the
store in app- presentation © ABL - The Problem Solver 60
61.
Retrieve the playing movie from the
store in playing- movie © ABL - The Problem Solver 61
62.
Cleanup app-container.jsx main-page/index.jsx
genre-list.jsx genre-row.jsx © ABL - The Problem Solver 62
63.
Filtering movies © ABL
- The Problem Solver 63
64.
Filtering movies The list
of filtered movies are derived from state © ABL - The Problem Solver 64
65.
Add action © ABL
- The Problem Solver 65
66.
Reducer © ABL -
The Problem Solver 66
67.
Filter- movies.jsx © ABL -
The Problem Solver 67
68.
App- presentation. jsx © ABL -
The Problem Solver 68
69.
Cleanup Header.jsx Remove
filterMovies Main-page/index.jsx Remove filterMovies © ABL - The Problem Solver 69
70.
Remove app-container The AppContainer is
no longer needed. © ABL - The Problem Solver 70
71.
Index.js © ABL -
The Problem Solver 71
72.
Connect only to required
movie data © ABL - The Problem Solver 72
73.
Main-page © ABL -
The Problem Solver 73
74.
Genre-list © ABL -
The Problem Solver 74
75.
Billboard © ABL -
The Problem Solver 75
76.
App- presentation © ABL -
The Problem Solver 76
77.
Bonus Exercises Extract updating
localStorage from user reducer and do this with middleware The user is passed from AppPresentation => MainPage => Header © ABL - The Problem Solver 77
78.
MauricedeBeijer @mauricedb maurice.de.beijer @gmail.com © ABL -
The Problem Solver 78
Download now