Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/react-guide/redux-tutorial-cn
/ actionCreator
Function
actionCreator
01_simple-action-creator.js:8–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
6
7
// action creator 就是函数而已...
8
var
actionCreator =
function
() {
9
// ...负责构建一个 action (是的,action creator 这个名字已经很明显了)并返回它
10
return
{
11
type
:
'AN_ACTION'
12
}
13
}
14
15
// 这就完了?是的,仅此而已。
16
Callers
1
01_simple-action-creator.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected