November 2018
Beginner
502 pages
10h 22m
English
The whole state of the application lives inside what is called a store. The state is stored in a JavaScript object like the one following:
{ products: [{ id: 1, name: "Table", ...}, {...}, ...], productsLoading: false, currentProduct: { id: 2, xname: "Chair", ... }, basket: [{ product: { id: 2, xname: "Chair" }, quantity: 1 }],};
In this example, the single object contains these:
The state won't contain any functions or setters or any getters. It's a simple JavaScript object. The store also orchestrates all the moving parts in Redux. This includes pushing actions though reducers ...
Read now
Unlock full access