SlideShare a Scribd company logo
Getting Started with React and Redux
What is ReactJS?
● An open source JavaScript library used to
create dynamic UIs for web applications
● UI / View ONLY
● No Assumptions
● Component Based
● Isomorphic JavaScript
● Design simple views for each state in your
application
● Updates and renders ONLY the parts needed
● More predictable and easier to debug
React Is Declarative
Component-Based
● Encapsulated components that can work
together but make no assumptions
● Keep state out of the DOM and pass rich data
through your app
● Components can be nested and can pass state
and properties to one another
● Provides better readability and reusability
▪ Props (or properties) are a components configuration
or options
▪ Components can pass props to other components
▪ Props are received from above and are immutable as
far as the component receiving them are concerned
this.props.name
Props
● Looks similar to XML
● Defines a familiar syntax for defining tree structures with
attributes
● Isn’t required but makes things easier
JSX – JavaScript Syntax Extension
Component Example
var Hello = React.createClass({
render: function() {
return <div>Hello {this.props.name}</div>;
}
});
ReactDOM.render(
<Hello name="World" />,
document.getElementById('container')
);
Page Components
What is Redux?
●
Redux is a predictable state container for JavaScript
applications
●
It helps to write applications that behave consistently,
run on different environments and are easy to test
●
Redux does NOT need React or any other library or
framework
Reducers
▪ Changes are made with pure functions called “Reducers”
▪ Reducers take the previous state and an action, and
return the next state
▪ You can start with a single reducer and then split and
combine multiple reducers as the app scales
Simple Example
store.dispatch({
type: 'INC',
payload: 1
});
store.dispatch({
type: ‘DEC',
payload: 1
});
const reducer = function(state, action){
// Make changes to state based on action
if(action.type == 'INC'){
return state + action.payload;
}
else if(action.type == 'DEC'){
return state - action.payload;
}
return state;
}
Flux
▪ Redux was inspired by Flux which is also an application
architecture that helps manage state
▪ Both Flux and Redux suggest keeping your model and
update logic in a certain layer of your application. In Redux,
these are “reducers” and in flux, these are “stores”
▪ Redux does not have the concept of a dispatcher
Store
Stores bring together actions and reducers. Stores have the following
responsibilities…
▪ Hold application state
▪ Allows access to state using getState();
▪ Allows actions to update state via dispatch
▪ Registers listeners via subscribe(listener);
▪ Handles unregistering of listeners via the function returned by
subscribe(listener).
Creating a Store
▪ Redux uses single stores and uses reducers to split
data handling logic
import { createStore } from 'redux'
import todoApp from './reducers'
let store = createStore(todoApp)
store.subscribe(() => {
console.log('Store Changed...', store.getState());
});
Other Inspirations
▪ Elm – Functional Programming language which enforces a
model view update architecture
▪ Immutable – JS library implementing persistent data
structures
▪ Rx (Reactive Extensions) – Helps manage asynchronous
data
The Complete Web Development Tutorial
Using React and Redux - Eduonix
Lectures: 29
Video: 4 hours of Content
Languages: English
Includes:
30 day money back guarantee! Lifetime Access. No Limits!
Certificate of Completion
In this Course you will learn
● What is React and Redux
● A brief introduction to JSX, the JavaScript extension
● A detailed breakdown of React and its core features including state &
nested components, methods and PropTypes & Validation
● A detailed breakdown of Redux and its core features including state,
store and reducers
● How to install and work with Webpack
● How to fetch data from an API
● Using React and Redux together to create a WeatherCheck Application
To Get this Course at $10 Use Coupon Code : OFFER10
Connect with us on Social Platforms
Reference Link
https://www.eduonix.com/courses/Web-Development/the-complete-web-develop
ment-tutorial-using-react-and-redux
Thank You
Ad

Recommended

ReactJS - A quick introduction to Awesomeness
ReactJS - A quick introduction to Awesomeness
Ronny Haase
 
Database and Java Database Connectivity
Database and Java Database Connectivity
Gary Yeh
 
Java DataBase Connectivity API (JDBC API)
Java DataBase Connectivity API (JDBC API)
Luzan Baral
 
PL/SQL
PL/SQL
GunavathyShanmuganat
 
java Jdbc
java Jdbc
Ankit Desai
 
Overview Of JDBC
Overview Of JDBC
Mindfire Solutions
 
PL-SQL, Cursors & Triggers
PL-SQL, Cursors & Triggers
Shalabh Chaudhary
 
Mule jdbc
Mule jdbc
Rajarajan Sadhasivam
 
JDBC Connectivity Model
JDBC Connectivity Model
kunj desai
 
Connecting to external_application
Connecting to external_application
Rajarajan Sadhasivam
 
Jdbc
Jdbc
Nitesh Kumar Pandey
 
embedded-static-&dynamic
embedded-static-&dynamic
Saranya Natarajan
 
What is JDBC
What is JDBC
university of education,Lahore
 
Pl sql-ch2
Pl sql-ch2
Mukesh Tekwani
 
Jdbc
Jdbc
Jussi Pohjolainen
 
Java database connectivity
Java database connectivity
Vaishali Modi
 
Introduction to React JS
Introduction to React JS
Arnold Asllani
 
MuleSoft ESB - CSV File to Database
MuleSoft ESB - CSV File to Database
akashdprajapati
 
Jdbc
Jdbc
leminhvuong
 
Java.sql package
Java.sql package
myrajendra
 
Jdbc Ppt
Jdbc Ppt
Centre for Budget and Governance Accountability (CBGA)
 
JDBC ppt
JDBC ppt
Rohit Jain
 
Jdbc_ravi_2016
Jdbc_ravi_2016
Ravinder Singh Karki
 
Jdbc connectivity in java
Jdbc connectivity in java
Muthukumaran Subramanian
 
JDBC Architecture and Drivers
JDBC Architecture and Drivers
SimoniShah6
 
Jdbc
Jdbc
Yamuna Devi
 
Stored Procedure With In Out Parameters in Mule 3.6
Stored Procedure With In Out Parameters in Mule 3.6
Sashidhar Rao GDS
 
Understanding redux
Understanding redux
David Atchley
 
Academy PRO: React JS. Redux & Tooling
Academy PRO: React JS. Redux & Tooling
Binary Studio
 
Introduction to Redux.pptx
Introduction to Redux.pptx
MohammadImran322154
 

More Related Content

What's hot (19)

JDBC Connectivity Model
JDBC Connectivity Model
kunj desai
 
Connecting to external_application
Connecting to external_application
Rajarajan Sadhasivam
 
Jdbc
Jdbc
Nitesh Kumar Pandey
 
embedded-static-&dynamic
embedded-static-&dynamic
Saranya Natarajan
 
What is JDBC
What is JDBC
university of education,Lahore
 
Pl sql-ch2
Pl sql-ch2
Mukesh Tekwani
 
Jdbc
Jdbc
Jussi Pohjolainen
 
Java database connectivity
Java database connectivity
Vaishali Modi
 
Introduction to React JS
Introduction to React JS
Arnold Asllani
 
MuleSoft ESB - CSV File to Database
MuleSoft ESB - CSV File to Database
akashdprajapati
 
Jdbc
Jdbc
leminhvuong
 
Java.sql package
Java.sql package
myrajendra
 
Jdbc Ppt
Jdbc Ppt
Centre for Budget and Governance Accountability (CBGA)
 
JDBC ppt
JDBC ppt
Rohit Jain
 
Jdbc_ravi_2016
Jdbc_ravi_2016
Ravinder Singh Karki
 
Jdbc connectivity in java
Jdbc connectivity in java
Muthukumaran Subramanian
 
JDBC Architecture and Drivers
JDBC Architecture and Drivers
SimoniShah6
 
Jdbc
Jdbc
Yamuna Devi
 
Stored Procedure With In Out Parameters in Mule 3.6
Stored Procedure With In Out Parameters in Mule 3.6
Sashidhar Rao GDS
 

Similar to Getting started with React and Redux (20)

Understanding redux
Understanding redux
David Atchley
 
Academy PRO: React JS. Redux & Tooling
Academy PRO: React JS. Redux & Tooling
Binary Studio
 
Introduction to Redux.pptx
Introduction to Redux.pptx
MohammadImran322154
 
Introduction to react and redux
Introduction to react and redux
Cuong Ho
 
The Road To Redux
The Road To Redux
Jeffrey Sanchez
 
Let's start with REDUX
Let's start with REDUX
Cubet Techno Labs
 
React/Redux
React/Redux
Durgesh Vaishnav
 
ReactRedux.pdf
ReactRedux.pdf
Arsalan malik
 
downloads_introduction to redux.pptx
downloads_introduction to redux.pptx
NavneetKumar111924
 
React and redux
React and redux
Mystic Coders, LLC
 
Let's discover React and Redux with TypeScript
Let's discover React and Redux with TypeScript
Mathieu Savy
 
Redux essentials
Redux essentials
Chandan Kumar Rana
 
Getting started with react &amp; redux
Getting started with react &amp; redux
Girish Talekar
 
Materi Modern React Redux Power Point.pdf
Materi Modern React Redux Power Point.pdf
exiabreak
 
an Introduction to Redux
an Introduction to Redux
Amin Ashtiani
 
Redux State Management System A Comprehensive Review
Redux State Management System A Comprehensive Review
ijtsrd
 
React
React
Amitai Barnea
 
An Introduction to Redux
An Introduction to Redux
NexThoughts Technologies
 
Redux Tech Talk
Redux Tech Talk
Chathuranga Jayanath
 
Redux
Redux
Maulik Shah
 
Academy PRO: React JS. Redux & Tooling
Academy PRO: React JS. Redux & Tooling
Binary Studio
 
Introduction to react and redux
Introduction to react and redux
Cuong Ho
 
downloads_introduction to redux.pptx
downloads_introduction to redux.pptx
NavneetKumar111924
 
Let's discover React and Redux with TypeScript
Let's discover React and Redux with TypeScript
Mathieu Savy
 
Getting started with react &amp; redux
Getting started with react &amp; redux
Girish Talekar
 
Materi Modern React Redux Power Point.pdf
Materi Modern React Redux Power Point.pdf
exiabreak
 
an Introduction to Redux
an Introduction to Redux
Amin Ashtiani
 
Redux State Management System A Comprehensive Review
Redux State Management System A Comprehensive Review
ijtsrd
 
Ad

More from Paddy Lock (13)

An Inforgraphic to Learn React Native
An Inforgraphic to Learn React Native
Paddy Lock
 
An Introduction to Vuejs
An Introduction to Vuejs
Paddy Lock
 
Docker for Professionals: The Practical Guide
Docker for Professionals: The Practical Guide
Paddy Lock
 
Beginners Guide to Modeling with Maya
Beginners Guide to Modeling with Maya
Paddy Lock
 
Introduction to Redis
Introduction to Redis
Paddy Lock
 
PPT on Angular 2 Development Tutorial
PPT on Angular 2 Development Tutorial
Paddy Lock
 
PPT on Photoshop
PPT on Photoshop
Paddy Lock
 
Advance Javascript for Coders
Advance Javascript for Coders
Paddy Lock
 
A Complete Guide For Effective Business Communication – A Course from Eduonix
A Complete Guide For Effective Business Communication – A Course from Eduonix
Paddy Lock
 
Clojure Fundamentals Course For Beginners
Clojure Fundamentals Course For Beginners
Paddy Lock
 
Linux Administrator - The Linux Course on Eduonix
Linux Administrator - The Linux Course on Eduonix
Paddy Lock
 
Infographic on Scala Programming Language
Infographic on Scala Programming Language
Paddy Lock
 
Presentation on Eduonix
Presentation on Eduonix
Paddy Lock
 
An Inforgraphic to Learn React Native
An Inforgraphic to Learn React Native
Paddy Lock
 
An Introduction to Vuejs
An Introduction to Vuejs
Paddy Lock
 
Docker for Professionals: The Practical Guide
Docker for Professionals: The Practical Guide
Paddy Lock
 
Beginners Guide to Modeling with Maya
Beginners Guide to Modeling with Maya
Paddy Lock
 
Introduction to Redis
Introduction to Redis
Paddy Lock
 
PPT on Angular 2 Development Tutorial
PPT on Angular 2 Development Tutorial
Paddy Lock
 
PPT on Photoshop
PPT on Photoshop
Paddy Lock
 
Advance Javascript for Coders
Advance Javascript for Coders
Paddy Lock
 
A Complete Guide For Effective Business Communication – A Course from Eduonix
A Complete Guide For Effective Business Communication – A Course from Eduonix
Paddy Lock
 
Clojure Fundamentals Course For Beginners
Clojure Fundamentals Course For Beginners
Paddy Lock
 
Linux Administrator - The Linux Course on Eduonix
Linux Administrator - The Linux Course on Eduonix
Paddy Lock
 
Infographic on Scala Programming Language
Infographic on Scala Programming Language
Paddy Lock
 
Presentation on Eduonix
Presentation on Eduonix
Paddy Lock
 
Ad

Recently uploaded (20)

FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
June Patch Tuesday
June Patch Tuesday
Ivanti
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
Precisely
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Impelsys Inc.
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
June Patch Tuesday
June Patch Tuesday
Ivanti
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
Precisely
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Impelsys Inc.
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
 

Getting started with React and Redux

  • 1. Getting Started with React and Redux
  • 2. What is ReactJS? ● An open source JavaScript library used to create dynamic UIs for web applications ● UI / View ONLY ● No Assumptions ● Component Based ● Isomorphic JavaScript
  • 3. ● Design simple views for each state in your application ● Updates and renders ONLY the parts needed ● More predictable and easier to debug React Is Declarative
  • 4. Component-Based ● Encapsulated components that can work together but make no assumptions ● Keep state out of the DOM and pass rich data through your app ● Components can be nested and can pass state and properties to one another ● Provides better readability and reusability
  • 5. ▪ Props (or properties) are a components configuration or options ▪ Components can pass props to other components ▪ Props are received from above and are immutable as far as the component receiving them are concerned this.props.name Props
  • 6. ● Looks similar to XML ● Defines a familiar syntax for defining tree structures with attributes ● Isn’t required but makes things easier JSX – JavaScript Syntax Extension
  • 7. Component Example var Hello = React.createClass({ render: function() { return <div>Hello {this.props.name}</div>; } }); ReactDOM.render( <Hello name="World" />, document.getElementById('container') );
  • 9. What is Redux? ● Redux is a predictable state container for JavaScript applications ● It helps to write applications that behave consistently, run on different environments and are easy to test ● Redux does NOT need React or any other library or framework
  • 10. Reducers ▪ Changes are made with pure functions called “Reducers” ▪ Reducers take the previous state and an action, and return the next state ▪ You can start with a single reducer and then split and combine multiple reducers as the app scales
  • 11. Simple Example store.dispatch({ type: 'INC', payload: 1 }); store.dispatch({ type: ‘DEC', payload: 1 }); const reducer = function(state, action){ // Make changes to state based on action if(action.type == 'INC'){ return state + action.payload; } else if(action.type == 'DEC'){ return state - action.payload; } return state; }
  • 12. Flux ▪ Redux was inspired by Flux which is also an application architecture that helps manage state ▪ Both Flux and Redux suggest keeping your model and update logic in a certain layer of your application. In Redux, these are “reducers” and in flux, these are “stores” ▪ Redux does not have the concept of a dispatcher
  • 13. Store Stores bring together actions and reducers. Stores have the following responsibilities… ▪ Hold application state ▪ Allows access to state using getState(); ▪ Allows actions to update state via dispatch ▪ Registers listeners via subscribe(listener); ▪ Handles unregistering of listeners via the function returned by subscribe(listener).
  • 14. Creating a Store ▪ Redux uses single stores and uses reducers to split data handling logic import { createStore } from 'redux' import todoApp from './reducers' let store = createStore(todoApp) store.subscribe(() => { console.log('Store Changed...', store.getState()); });
  • 15. Other Inspirations ▪ Elm – Functional Programming language which enforces a model view update architecture ▪ Immutable – JS library implementing persistent data structures ▪ Rx (Reactive Extensions) – Helps manage asynchronous data
  • 16. The Complete Web Development Tutorial Using React and Redux - Eduonix Lectures: 29 Video: 4 hours of Content Languages: English Includes: 30 day money back guarantee! Lifetime Access. No Limits! Certificate of Completion
  • 17. In this Course you will learn ● What is React and Redux ● A brief introduction to JSX, the JavaScript extension ● A detailed breakdown of React and its core features including state & nested components, methods and PropTypes & Validation ● A detailed breakdown of Redux and its core features including state, store and reducers ● How to install and work with Webpack ● How to fetch data from an API ● Using React and Redux together to create a WeatherCheck Application
  • 18. To Get this Course at $10 Use Coupon Code : OFFER10 Connect with us on Social Platforms Reference Link https://www.eduonix.com/courses/Web-Development/the-complete-web-develop ment-tutorial-using-react-and-redux