Provider Profile Page
Services
List
About
Reviews
Services
Photos
Photo
Photo
Photo
Swiper
Service
Actions
Redux Store
Selectors
Encapsulate complex data behind a simple interface - facade pattern.
Rematch selectors allow components to access data regardless of position in hierarchy
Provide a single interface for incompatible modules
Expose data safely, only where it is needed
Predicting actions impacting siblings and cousins by using function composition to wire up groups of components in two different ways - selectors that cleanly grab data as it is stored and transport it to the component it needs used inside an adapter selector that transforms the data for the interface needed
Model
Pure data representation of View.
View
Visual Representation of Model.
Controller
Coordinates, Organizes and lays out Views.
Model
Passive data representation of the UI.
Presenter
Retrieves data from the Model and formats it for the View, acts upon events from the View.
View
Passive visual representation of the data, relays events to Presenter.
ViewModel
View
Model
Data and business.
Instantiates appropriate model and view with data binding
Stateless Templated Markup and Styling
Whatever
View
Model
Data and business.
$scope?
Stateless Templated Markup and Styling
identify the core, minimal data representation of your application
identify where that data is used in every component
lift the state up to a common ancestor, or one component higher than the most common ancestor
if you can’t find a component that makes sense, make an arbitrary state-holding component and put it somewhere above the components that need that state.
Model
Pure data representation of View.
View
Visual Representation of Model.
Controller
Coordinates, Organizes and lays out Views.
Model
Passive data representation of the UI.
Presenter
Retrieves data from the Model and formats it for the View, acts upon events from the View.
View
Passive visual representation of the data, relays events to Presenter.
ViewModel
View
Model
Data and business.
Instantiates appropriate model and view with data binding
Stateless Templated Markup and Styling
Whatever
View
Model
Data and business.
$scope?
Stateless Templated Markup and Styling