Skip to content

Commit 34d7963

Browse files
committed
Update 04_get-state.js
1 parent 4df41db commit 34d7963

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

04_get-state.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ console.log('store_1 state after initialization:', store_1.getState())
4040
// 输出:store_1 state after initialization: {}
4141

4242
// 如我们所愿,现在 Redux 初始化以后返回的 state 变成 {} 了
43-
// 感谢ES6,这个模式现在实现起来很清晰,
43+
//
44+
// 感谢ES6,这个模式现在实现起来很清晰:
4445

4546
var reducer_2 = function (state = {}, action) {
4647
console.log('reducer_2 was called with state', state, 'and action', action)

0 commit comments

Comments
 (0)