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

More Related Content

What's hot (19)

PPT
JDBC Connectivity Model
kunj desai
 
PPTX
Connecting to external_application
Rajarajan Sadhasivam
 
PPTX
embedded-static-&dynamic
Saranya Natarajan
 
PDF
Pl sql-ch2
Mukesh Tekwani
 
PPT
Java database connectivity
Vaishali Modi
 
PPTX
Introduction to React JS
Arnold Asllani
 
PPTX
MuleSoft ESB - CSV File to Database
akashdprajapati
 
PPT
Jdbc
leminhvuong
 
PPTX
Java.sql package
myrajendra
 
PPTX
JDBC ppt
Rohit Jain
 
PPTX
Jdbc_ravi_2016
Ravinder Singh Karki
 
PDF
Jdbc connectivity in java
Muthukumaran Subramanian
 
PPT
JDBC Architecture and Drivers
SimoniShah6
 
PPTX
Jdbc
Yamuna Devi
 
PPTX
Stored Procedure With In Out Parameters in Mule 3.6
Sashidhar Rao GDS
 
JDBC Connectivity Model
kunj desai
 
Connecting to external_application
Rajarajan Sadhasivam
 
embedded-static-&dynamic
Saranya Natarajan
 
Pl sql-ch2
Mukesh Tekwani
 
Java database connectivity
Vaishali Modi
 
Introduction to React JS
Arnold Asllani
 
MuleSoft ESB - CSV File to Database
akashdprajapati
 
Java.sql package
myrajendra
 
JDBC ppt
Rohit Jain
 
Jdbc_ravi_2016
Ravinder Singh Karki
 
Jdbc connectivity in java
Muthukumaran Subramanian
 
JDBC Architecture and Drivers
SimoniShah6
 
Stored Procedure With In Out Parameters in Mule 3.6
Sashidhar Rao GDS
 

Similar to Getting started with React and Redux (20)

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

More from Paddy Lock (13)

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

Recently uploaded (20)

PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 

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