From 08fe93639d98b48772c57fc03df432e0b9614d8a Mon Sep 17 00:00:00 2001 From: JD Huntington Date: Mon, 25 Feb 2019 11:20:26 -0800 Subject: [PATCH] [Step2-05] Reorder definitions --- step2-05/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/step2-05/README.md b/step2-05/README.md index 9601ce9..7b7c731 100644 --- a/step2-05/README.md +++ b/step2-05/README.md @@ -18,14 +18,14 @@ Facebook invented a the Flux pattern to solve this shared state issue. Redux is These are the React Components that consume the store as its data. There is a special way Redux will map its data from the state tree into the different React Components. The Components will know to re-render when these bits of state are changed. +## Action + +Actions are messages that represent some event, such as a user's action or a network request. With the aid of _reducers_, they affect the overall state. + ## Store This is a singleton state tree. The state tree is immutable and needs to be re-created at every action. This helps connected views to know when to update itself - just doing a simple reference comparison rather than a deep comparison. -## Action - -Actions are messages to be dispatched to the store to let reducers to change (replace reference of) the state tree. - ## Reducers These are simple stateless, pure functions that takes state + action message and returns a copy of state some modifications according to the action message type and payload.