SlideShare a Scribd company logo
2
Most read
6
Most read
11
Most read
Redux
HELLO!
I am Hiten Pratap Singh
You can find me at
https://github.com/hitenpratap/
https://hprog99.wordpress.com/
hiten@fintechlabs.in
https://hitenpratap.github.io
Redux
It can be used with any framework like
Angular, ReactJS, VueJS etc
Flux Architecture
Flux, a programming pattern takes care of the M in the MVC
Flux Architecture
✘ Responsible for creating data layers in
JavaScript applications
✘ Follows the concept of unidirectional data
flow
✘ Not actually an framework/library rather an
architecture
✘ Many implementations out there like Redux,
Reflux, Fluxxor, Flummox and Alt etc.
Flux Data FLow
Why Redux is needed?
Why should I use another framework/lib?
Why Redux is needed!
What is Redux?
Why it stands out among other implementations of Flux
What’s Redux?
Redux is a predictable state container for
JavaScript apps.
You can use Redux together with React, or with
any other view library.
It is tiny (2kB, including dependencies).
Redux Data FLow
Principles of Redux
What are they?
Principles of Redux
✘ The state is immutable and cannot change in
place.
✘ Only way to change the state is by sending a
signal to the store.
✘ Changes are made with pure functions.
Building Blocks of Redux
Pillars of Redux!
Building Blocks of Redux!
✘ Actions
✘ Reducers
✘ Store
Actions
Actions are payloads of information that send
data from your application to your store. You
send them to the store using store.dispatch()
Actions are plain JavaScript objects. Actions must
have a type property that indicates the type of
action being performed.
Reducers
Reducers specify how the application's state
changes in response to actions sent to the store.
Actions only describe the fact that something
happened, but don't describe how the
application's state changes.
Store
A store is an object that brings them together. A
store has the following responsibilities:
✘ Holds application state
✘ Allows access to state via getState()
✘ Allows state to be updated via
dispatch(action)
✘ Registers listeners via subscribe(listener)
✘ Handles unregistering of listeners via the
function returned by subscribe(listener)
Redux API
Redux store exposes a simple API
Redux API
✘ getState for accessing the current state of
the application
✘ dispatch for dispatching an action
✘ subscribe for listening on state changes
How Redux is different from Flux?
What are these?
Difference between Redux and Flux
THANKS!
Any questions?
You can find me at:
https://github.com/hitenpratap/
https://hprog99.wordpress.com/
hiten@fintechlabs.in
https://hitenpratap.github.io
References
✘ https://medium.com/@cabot_solutions/flux-the-react-js-application-architecture-a-compre
hensive-study-fd2585d06483
✘ https://www.valentinog.com/blog/react-redux-tutorial-beginners/
✘ https://medium.com/netscape/beginners-guide-to-react-redux-how-to-start-learning-and-
not-be-overwhelmed-af04353101e
✘ https://appdividend.com/2017/08/23/redux-tutorial-example-scratch/
✘ https://redux.js.org
✘ https://edgecoders.com/the-difference-between-flux-and-redux-71d31b118c1
✘ http://almerosteyn.com/2016/08/redux-explained-again
✘ https://joesasson.github.io/2017/03/03/the-problem-that-redux-solves-in-one-simple-exa
mple.html
✘

More Related Content

What's hot (20)

PPTX
React workshop
Imran Sayed
 
PPTX
React state
Ducat
 
PDF
React and redux
Mystic Coders, LLC
 
PPTX
[Final] ReactJS presentation
洪 鹏发
 
PDF
An introduction to React.js
Emanuele DelBono
 
PPTX
Its time to React.js
Ritesh Mehrotra
 
PPTX
Reactjs
Neha Sharma
 
PPTX
React hooks
Assaf Gannon
 
PPTX
reactJS
Syam Santhosh
 
PPTX
Intro to React
Eric Westfall
 
PDF
Ngrx slides
Christoffer Noring
 
PDF
ReactJS presentation
Thanh Tuong
 
PDF
Let's Redux!
Joseph Chiang
 
PDF
React JS - Introduction
Sergey Romaneko
 
PPTX
React js programming concept
Tariqul islam
 
PPTX
React JS - A quick introduction tutorial
Mohammed Fazuluddin
 
PPTX
Redux training
dasersoft
 
PDF
ReactJS
Hiten Pratap Singh
 
PDF
React js
Rajesh Kolla
 
React workshop
Imran Sayed
 
React state
Ducat
 
React and redux
Mystic Coders, LLC
 
[Final] ReactJS presentation
洪 鹏发
 
An introduction to React.js
Emanuele DelBono
 
Its time to React.js
Ritesh Mehrotra
 
Reactjs
Neha Sharma
 
React hooks
Assaf Gannon
 
reactJS
Syam Santhosh
 
Intro to React
Eric Westfall
 
Ngrx slides
Christoffer Noring
 
ReactJS presentation
Thanh Tuong
 
Let's Redux!
Joseph Chiang
 
React JS - Introduction
Sergey Romaneko
 
React js programming concept
Tariqul islam
 
React JS - A quick introduction tutorial
Mohammed Fazuluddin
 
Redux training
dasersoft
 
React js
Rajesh Kolla
 

Similar to An Introduction to Redux (20)

PPTX
Reducers+flux=redux
Shmulik Chicvashvili
 
PPTX
U3-02-React Redux and MUI.pptxaSDFGNXDASDFG
vinodkumarthatipamul
 
PDF
React Redux Interview Questions PDF By ScholarHat
Scholarhat
 
PDF
React Redux Interview Questions PDF By ScholarHat
Scholarhat
 
PPTX
downloads_introduction to redux.pptx
NavneetKumar111924
 
PPTX
Academy PRO: React JS. Redux & Tooling
Binary Studio
 
PDF
[@NaukriEngineering] Flux Architecture
Naukri.com
 
PPTX
Getting started with Redux js
Citrix
 
PDF
Getting started with React and Redux
Paddy Lock
 
PDF
How to Redux
Ted Pennings
 
PDF
ReactRedux.pdf
Arsalan malik
 
PDF
Redux in Angular 2+
Hùng Nguyễn Huy
 
PDF
React.js and Redux overview
Alex Bachuk
 
PPTX
React. Flux. Redux
Andrey Kolodnitsky
 
PPTX
an Introduction to Redux
Amin Ashtiani
 
PPTX
006. React - Redux framework
Binh Quan Duc
 
PPTX
Introduction to Redux.pptx
MohammadImran322154
 
PDF
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
Edureka!
 
PDF
Manage the Flux of your Web Application: Let's Redux
Commit University
 
PPT
The Redux Introduction in react and applications .
Lalith86
 
Reducers+flux=redux
Shmulik Chicvashvili
 
U3-02-React Redux and MUI.pptxaSDFGNXDASDFG
vinodkumarthatipamul
 
React Redux Interview Questions PDF By ScholarHat
Scholarhat
 
React Redux Interview Questions PDF By ScholarHat
Scholarhat
 
downloads_introduction to redux.pptx
NavneetKumar111924
 
Academy PRO: React JS. Redux & Tooling
Binary Studio
 
[@NaukriEngineering] Flux Architecture
Naukri.com
 
Getting started with Redux js
Citrix
 
Getting started with React and Redux
Paddy Lock
 
How to Redux
Ted Pennings
 
ReactRedux.pdf
Arsalan malik
 
Redux in Angular 2+
Hùng Nguyễn Huy
 
React.js and Redux overview
Alex Bachuk
 
React. Flux. Redux
Andrey Kolodnitsky
 
an Introduction to Redux
Amin Ashtiani
 
006. React - Redux framework
Binh Quan Duc
 
Introduction to Redux.pptx
MohammadImran322154
 
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
Edureka!
 
Manage the Flux of your Web Application: Let's Redux
Commit University
 
The Redux Introduction in react and applications .
Lalith86
 
Ad

More from NexThoughts Technologies (20)

PDF
Alexa skill
NexThoughts Technologies
 
PDF
Docker & kubernetes
NexThoughts Technologies
 
PDF
Apache commons
NexThoughts Technologies
 
PDF
Microservice Architecture using Spring Boot with React & Redux
NexThoughts Technologies
 
PDF
Solid Principles
NexThoughts Technologies
 
PDF
Introduction to TypeScript
NexThoughts Technologies
 
PDF
Smart Contract samples
NexThoughts Technologies
 
PDF
My Doc of geth
NexThoughts Technologies
 
PDF
Geth important commands
NexThoughts Technologies
 
PDF
Ethereum genesis
NexThoughts Technologies
 
PPTX
Springboot Microservices
NexThoughts Technologies
 
PPTX
Google authentication
NexThoughts Technologies
 
ODP
Java 9 Features
NexThoughts Technologies
 
Docker & kubernetes
NexThoughts Technologies
 
Apache commons
NexThoughts Technologies
 
Microservice Architecture using Spring Boot with React & Redux
NexThoughts Technologies
 
Solid Principles
NexThoughts Technologies
 
Introduction to TypeScript
NexThoughts Technologies
 
Smart Contract samples
NexThoughts Technologies
 
My Doc of geth
NexThoughts Technologies
 
Geth important commands
NexThoughts Technologies
 
Ethereum genesis
NexThoughts Technologies
 
Springboot Microservices
NexThoughts Technologies
 
Google authentication
NexThoughts Technologies
 
Java 9 Features
NexThoughts Technologies
 
Ad

Recently uploaded (20)

PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 

An Introduction to Redux