In Chapter 2, Building a Shopping Cart, we built a Create Read Update Delete (CRUD) application and managed reactivity by creating Higher-Order Component (HOC); we did this by wrapping our container components with the react-meteor-data package. We used this package to do the fetching and passing of data down to the container components and their children as props.
We generated our container components as follows:
export default createContainer(() => {
return {
products: ProductsCollection.find({department: 'books'}).fetch()
};
}, Books);
In Chapter 4, Real-Time Twitter Streaming, we introduced a client-side state container library, called Redux. With Redux, we persisted the application state by connecting our containers to a single store that had a single JavaScript object presentation of the state. Note that we persisted the data...