Skip to content

Commit 8d6655e

Browse files
author
lewis liu
committed
Update configureStore.js
1 parent e283bec commit 8d6655e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redux-examples/counter/store/configureStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import thunk from 'redux-thunk'
33
import reducer from '../reducers'
44

55
//applyMiddleware来自redux可以包装 store 的 dispatch
6-
//thunk作用是使被 dispatch 的 function 会接收 dispatch 作为参数,并且可以异步调用它
6+
//thunk作用是使action创建函数可以返回一个function代替一个action对象
77
const createStoreWithMiddleware = compose(
88
applyMiddleware(
99
thunk

0 commit comments

Comments
 (0)