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)

PDF
ReactJS presentation
Thanh Tuong
 
PPTX
Reactjs
Neha Sharma
 
PPTX
React + Redux Introduction
Nikolaus Graf
 
PPTX
Introduction to React JS for beginners
Varun Raj
 
PPTX
Introduction to React
Rob Quick
 
PDF
React js
Rajesh Kolla
 
PPTX
ReactJS presentation.pptx
DivyanshGupta922023
 
PPTX
reactJS
Syam Santhosh
 
PPTX
React workshop
Imran Sayed
 
PPTX
Its time to React.js
Ritesh Mehrotra
 
PPTX
React js
Alireza Akbari
 
PPTX
React-JS.pptx
AnmolPandita7
 
PPTX
Redux workshop
Imran Sayed
 
PDF
react redux.pdf
Knoldus Inc.
 
PPTX
React js
Oswald Campesato
 
PPTX
React js - The Core Concepts
Divyang Bhambhani
 
PPT
Java Script ppt
Priya Goyal
 
PPTX
Reactjs
Mallikarjuna G D
 
PDF
Introduction to React JS
Bethmi Gunasekara
 
ReactJS presentation
Thanh Tuong
 
Reactjs
Neha Sharma
 
React + Redux Introduction
Nikolaus Graf
 
Introduction to React JS for beginners
Varun Raj
 
Introduction to React
Rob Quick
 
React js
Rajesh Kolla
 
ReactJS presentation.pptx
DivyanshGupta922023
 
reactJS
Syam Santhosh
 
React workshop
Imran Sayed
 
Its time to React.js
Ritesh Mehrotra
 
React js
Alireza Akbari
 
React-JS.pptx
AnmolPandita7
 
Redux workshop
Imran Sayed
 
react redux.pdf
Knoldus Inc.
 
React js - The Core Concepts
Divyang Bhambhani
 
Java Script ppt
Priya Goyal
 
Introduction to React JS
Bethmi Gunasekara
 

Similar to An Introduction to Redux (20)

PPTX
React gsg presentation with ryan jung & elias malik
Lama K Banna
 
PPTX
Will React Hooks replace Redux?
Trivikram Kamat
 
PPTX
downloads_introduction to redux.pptx
NavneetKumar111924
 
PPTX
U3-02-React Redux and MUI.pptxaSDFGNXDASDFG
vinodkumarthatipamul
 
PDF
React Native +Redux + ES6 (Updated)
Chiew Carol
 
PPTX
Intro to Flux - ReactJS Warsaw #1
Damian Legawiec
 
PPTX
React + Flux = Joy
John Need
 
PPTX
Redux
Maulik Shah
 
PDF
React
Amitai Barnea
 
PDF
Learning React js Learn React JS From Scratch with Hands On Projects 2nd Edit...
bandmvh3697
 
PDF
ReactRedux.pdf
Arsalan malik
 
PDF
React Redux Interview Questions PDF By ScholarHat
Scholarhat
 
PDF
React Redux Interview Questions PDF By ScholarHat
Scholarhat
 
PDF
Techpaathshala ReactJS .pdf
Techpaathshala
 
PPTX
Redux Like Us
Heber Silva
 
PDF
Robust web apps with React.js
Max Klymyshyn
 
PPT
Flux architecture
Badr Zaman [Front End , J2EE ]
 
PDF
Getting started with React and Redux
Paddy Lock
 
PPTX
an Introduction to Redux
Amin Ashtiani
 
PPTX
React + Redux + TypeScript === ♥
Remo Jansen
 
React gsg presentation with ryan jung & elias malik
Lama K Banna
 
Will React Hooks replace Redux?
Trivikram Kamat
 
downloads_introduction to redux.pptx
NavneetKumar111924
 
U3-02-React Redux and MUI.pptxaSDFGNXDASDFG
vinodkumarthatipamul
 
React Native +Redux + ES6 (Updated)
Chiew Carol
 
Intro to Flux - ReactJS Warsaw #1
Damian Legawiec
 
React + Flux = Joy
John Need
 
Learning React js Learn React JS From Scratch with Hands On Projects 2nd Edit...
bandmvh3697
 
ReactRedux.pdf
Arsalan malik
 
React Redux Interview Questions PDF By ScholarHat
Scholarhat
 
React Redux Interview Questions PDF By ScholarHat
Scholarhat
 
Techpaathshala ReactJS .pdf
Techpaathshala
 
Redux Like Us
Heber Silva
 
Robust web apps with React.js
Max Klymyshyn
 
Getting started with React and Redux
Paddy Lock
 
an Introduction to Redux
Amin Ashtiani
 
React + Redux + TypeScript === ♥
Remo Jansen
 
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)

PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Digital Circuits, important subject in CS
contactparinay1
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 

An Introduction to Redux