SlideShare a Scribd company logo
Flux and React.js
FLUX VS REACT.JS
• Flux
• An application architecture for building User Interfaces (UI)
• A data flow application architecture created and used by Facebook for client-
side web applications
• React.js
• An open source JavaScript library for building user interfaces
• An implementation of Web Components for customized User Interface
elements.
• Blends in easily with any of the technologies selected.
• It is the V in the MVC – Model View Architecture
ADVANTAGES OF REACT.JS
• Prudent use of a Component Model
• Abstraction
• Composition
• Expressivity
• Server Side Rendering
FLUX & REACT TOGETHER
• Flux can be implemented using any platform or programming language
• when used internally with React.js the UI & UX are unparalleled
• React enhances the use of reusable UI to generate competent UX
COMPANIES USING FLUX ARCHITECTURE
• Facebook
• Instagram
• New York Times 2014 Red Carpet Project
COMPONENTS
• Responsible for the closely co-ordinated functioning of the applications
• Control and initiate Events as allocated to them to maintain the integrity and
validity of the application state
• This harmony amongst the components ensures a unidirectional data flow
CORE COMPONENTS OF FLUX ARCHITECTURE
APIs
Action
Creators
• Actions
Dispatcher
• Callbacks
Stores
• Event
• Data
Views
• Communicate
to Users
1. Actions & Action Creators
2. Dispatcher
3. Stores
4. Controller Views
ACTIONS
• Helper methods which pass data to the Dispatcher
• JavaScript objects with a type and data associated with them
• Exchange data from the Server
• The data is introduced into the Flux Flow by Actions while the bi directional
interactions from the outside traffic are taking place
• The data is eventually then sent to the Stores
• Another group of methods called the Action Creators are invoked and they
send actions to the Dispatcher
DISPATCHER
• The Dispatcher is the one responsible for co-ordinating the entire logic of the
application
• It synchronises the receiving of actions and the dispatching of the actions as
well, along with the data to the registered call backs
STORES
• Holds various components for use down the line within the application
• They hold the components for multiple states of the applications, maintaining
smooth logic
• They hold application state and business logic using various variables
• Manage data, its methods and the Dispatcher call backs
• Organizes components domain wise and the management is done in
accordance with the need of each domain
• Emit Events and a View which eventually binds to the respective Store’s
Events for further actions
CONTROLLER VIEWS
• These components obtain the State as data from Stores and communicate
them to the respective View in the hierarchy
• They render with the Controller Views
A PROMISING FUTURE - FLUX AND REACT.JS
• React is a rage today when it comes to web frontend
• It eliminates the nuisances of huge and slow data structures of the age old
DOMs by introducing the very crisp Virtual DOM
• The Flux architecture enforces unidirectional data flow and typically turns
Single Page Applications into understandable and simple implementations
VISIT
HTTP://WWW.SPEC-INDIA.COM/SERVICES/JAVA-APPLICATION-DEVELOPMENT.HTML
&
REQUEST A FREE POC
TO
TEST DRIVE OUR SERVICES

More Related Content

PPT
PPT
Building Reactive webapp with React/Flux
PPTX
Flux architecture
PDF
Introduce flux & react in practice
PDF
Basic React Knowledge.
PPTX
React + Flux = Joy
PDF
Kentico and MVC
Building Reactive webapp with React/Flux
Flux architecture
Introduce flux & react in practice
Basic React Knowledge.
React + Flux = Joy
Kentico and MVC

What's hot (20)

PDF
SpringPeople Introduction to Spring Framework
PPTX
4. Introduction to ASP.NET MVC - Part I
PDF
Introduction to React, Flux, and Isomorphic Apps
PPT
Architectural peripherals of react by Vadym Zhiltsov
PPTX
Using MVC with Kentico 8
PPTX
Using the Kentico CMS API
PDF
Akka - Developing SEDA Based Applications
PPTX
Reactive programming intro
PPTX
Reactive programming
PPTX
Functional reactive programming
PDF
Reactive: Programming -> Systems -> Architecture
PPTX
Active mq read and write flow in mule
PPTX
4. introduction to Asp.Net MVC - Part II
PPTX
Ruby on Rails 3
PPTX
Mule soft meetup__official__feb-27_2021
PDF
M5 l8-mvc-rails-handout
PDF
KnowItPresentation
PPTX
Getting started with react & redux
PPT
Intro to SPA using JavaScript & ASP.NET
PDF
Data science at scale with Kafka and Flink (Razorpay)
SpringPeople Introduction to Spring Framework
4. Introduction to ASP.NET MVC - Part I
Introduction to React, Flux, and Isomorphic Apps
Architectural peripherals of react by Vadym Zhiltsov
Using MVC with Kentico 8
Using the Kentico CMS API
Akka - Developing SEDA Based Applications
Reactive programming intro
Reactive programming
Functional reactive programming
Reactive: Programming -> Systems -> Architecture
Active mq read and write flow in mule
4. introduction to Asp.Net MVC - Part II
Ruby on Rails 3
Mule soft meetup__official__feb-27_2021
M5 l8-mvc-rails-handout
KnowItPresentation
Getting started with react & redux
Intro to SPA using JavaScript & ASP.NET
Data science at scale with Kafka and Flink (Razorpay)
Ad

Similar to Flux and React.js (20)

PPTX
React. Flux. Redux. by Andrey Kolodnitskiy
PPTX
React. Flux. Redux
PDF
React + flux
PPTX
What is flux architecture in react
ODP
Fluxxor react library
PDF
FRONTEND DEVELOPMENT WITH REACT.JS
PPTX
Flux memo
PDF
TPSE Thailand 2015 - Rethinking Web with React and Flux
PDF
Instant download Flux Architecture 1 edition Edition Boduch pdf all chapter
PPTX
React.js at Cortex
PDF
React & Flux Workshop
PDF
Flux Architecture 1 edition Edition Boduch
PPTX
Flux - rethink in design pattern
PDF
From Back to Front: Rails To React Family
PDF
An Intense Overview of the React Ecosystem
PPSX
React introduction
PDF
Flux Architecture 1 edition Edition Boduch
PDF
JBug_React_and_Flux_2015
PPTX
vishal presefffffffffffffffffffffffffffffffntations.pptx
PDF
[@NaukriEngineering] Flux Architecture
React. Flux. Redux. by Andrey Kolodnitskiy
React. Flux. Redux
React + flux
What is flux architecture in react
Fluxxor react library
FRONTEND DEVELOPMENT WITH REACT.JS
Flux memo
TPSE Thailand 2015 - Rethinking Web with React and Flux
Instant download Flux Architecture 1 edition Edition Boduch pdf all chapter
React.js at Cortex
React & Flux Workshop
Flux Architecture 1 edition Edition Boduch
Flux - rethink in design pattern
From Back to Front: Rails To React Family
An Intense Overview of the React Ecosystem
React introduction
Flux Architecture 1 edition Edition Boduch
JBug_React_and_Flux_2015
vishal presefffffffffffffffffffffffffffffffntations.pptx
[@NaukriEngineering] Flux Architecture
Ad

More from sara stanford (15)

PPTX
Crowdsourcing Collaborative Medical Research
PPTX
Microsoft’s HockeyApp - Mobile Application Testing Tool
PPTX
Self Service Business Intelligence
PPTX
Interaction Design - A Heady Mix of Things
PPTX
Less Design That is More…
PPTX
IndexedDB - An Efficient Way to Manage Data
PPTX
Big data combat
PPTX
Lambda Behave - Java 8's Testing Framework
PPTX
Robotium
PPTX
Cloud computing
PPTX
Mobile device management
PPTX
Ember js java script framework
PPTX
Google Material Design
PPTX
10 Reality Checks to be Performed Before Implementing Mobile Sales Force Aut...
PDF
SQL Server Service Broker – A Competent Architecture by Microsoft
Crowdsourcing Collaborative Medical Research
Microsoft’s HockeyApp - Mobile Application Testing Tool
Self Service Business Intelligence
Interaction Design - A Heady Mix of Things
Less Design That is More…
IndexedDB - An Efficient Way to Manage Data
Big data combat
Lambda Behave - Java 8's Testing Framework
Robotium
Cloud computing
Mobile device management
Ember js java script framework
Google Material Design
10 Reality Checks to be Performed Before Implementing Mobile Sales Force Aut...
SQL Server Service Broker – A Competent Architecture by Microsoft

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Big Data Technologies - Introduction.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Big Data Technologies - Introduction.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Unlocking AI with Model Context Protocol (MCP)
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MIND Revenue Release Quarter 2 2025 Press Release
Spectroscopy.pptx food analysis technology
Understanding_Digital_Forensics_Presentation.pptx
Network Security Unit 5.pdf for BCA BBA.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Flux and React.js

  • 2. FLUX VS REACT.JS • Flux • An application architecture for building User Interfaces (UI) • A data flow application architecture created and used by Facebook for client- side web applications • React.js • An open source JavaScript library for building user interfaces • An implementation of Web Components for customized User Interface elements. • Blends in easily with any of the technologies selected. • It is the V in the MVC – Model View Architecture
  • 3. ADVANTAGES OF REACT.JS • Prudent use of a Component Model • Abstraction • Composition • Expressivity • Server Side Rendering
  • 4. FLUX & REACT TOGETHER • Flux can be implemented using any platform or programming language • when used internally with React.js the UI & UX are unparalleled • React enhances the use of reusable UI to generate competent UX
  • 5. COMPANIES USING FLUX ARCHITECTURE • Facebook • Instagram • New York Times 2014 Red Carpet Project
  • 6. COMPONENTS • Responsible for the closely co-ordinated functioning of the applications • Control and initiate Events as allocated to them to maintain the integrity and validity of the application state • This harmony amongst the components ensures a unidirectional data flow
  • 7. CORE COMPONENTS OF FLUX ARCHITECTURE APIs Action Creators • Actions Dispatcher • Callbacks Stores • Event • Data Views • Communicate to Users 1. Actions & Action Creators 2. Dispatcher 3. Stores 4. Controller Views
  • 8. ACTIONS • Helper methods which pass data to the Dispatcher • JavaScript objects with a type and data associated with them • Exchange data from the Server • The data is introduced into the Flux Flow by Actions while the bi directional interactions from the outside traffic are taking place • The data is eventually then sent to the Stores • Another group of methods called the Action Creators are invoked and they send actions to the Dispatcher
  • 9. DISPATCHER • The Dispatcher is the one responsible for co-ordinating the entire logic of the application • It synchronises the receiving of actions and the dispatching of the actions as well, along with the data to the registered call backs
  • 10. STORES • Holds various components for use down the line within the application • They hold the components for multiple states of the applications, maintaining smooth logic • They hold application state and business logic using various variables • Manage data, its methods and the Dispatcher call backs • Organizes components domain wise and the management is done in accordance with the need of each domain • Emit Events and a View which eventually binds to the respective Store’s Events for further actions
  • 11. CONTROLLER VIEWS • These components obtain the State as data from Stores and communicate them to the respective View in the hierarchy • They render with the Controller Views
  • 12. A PROMISING FUTURE - FLUX AND REACT.JS • React is a rage today when it comes to web frontend • It eliminates the nuisances of huge and slow data structures of the age old DOMs by introducing the very crisp Virtual DOM • The Flux architecture enforces unidirectional data flow and typically turns Single Page Applications into understandable and simple implementations