Skip to content

Commit 7d58803

Browse files
authored
Merge pull request #20 from b1f6c1c4/patch-1
Replace = with ===
2 parents dcf57a0 + 111c4e9 commit 7d58803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ app.use(loggerMiddleware)
160160
* `subscribe(listener) # 您可以理解成是 DOM 中的 addEventListener`
161161
* `replaceReducer(nextReducer) # 一般在 Webpack Code-Splitting 按需加载的时候用`
162162

163-
二者的关系是:`state = store.getState()`
163+
二者的关系是:`state === store.getState()`
164164

165165
Redux 规定,一个应用只应有一个单一的 `store`,其管理着唯一的应用状态 `state`
166166
Redux 还规定,不能直接修改应用的状态 `state`,也就是说,下面的行为是不允许的:

0 commit comments

Comments
 (0)