Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with React

You're reading from  Getting Started with React

Product type Book
Published in Apr 2016
Publisher
ISBN-13 9781783550579
Pages 212 pages
Edition 1st Edition
Languages
Authors (3):
Doel Sengupta Doel Sengupta
Profile icon Doel Sengupta
Manu Singhal Manu Singhal
Profile icon Manu Singhal
Danillo Corvalan Danillo Corvalan
Profile icon Danillo Corvalan
View More author details

Table of Contents (18) Chapters

An overview of Flux


Flux should not be confused as a framework based on ReactJS. Flux is an architecture and is designed in order to reduce the complexity of a huge application built with Model View Controller (MVC) architecture and has been designed as an alternative of MVC.

The following are the different Flux components:

  • View—This is like for any web app, the views (basically the react component) receives the event and passes it to the Actions

  • Action—They are helper methods (actionCreators) that pass the data (payload) and actionType, received from an external API/view to a dispatcher

  • Dispatcher—These are Central hub of all registered callbacks. It receives the actions and acts as a "traffic controller" before it passes it to the Stores

  • Store—It is a data layer that stores all the computations and business logic. It is also responsible for storing the application state and the single source of truth for the application state. It receives the action from the dispatchers based on the registered...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}