UNPKG
@nlabs/arkhamjs-example-flow-react
Version:
latest (3.24.0)
3.24.0
3.23.0
3.22.1
3.22.0
3.21.0
3.20.5
3.20.4
3.20.3
3.20.2
3.20.1
3.20.0
3.19.0
3.18.5
3.18.3
3.18.2
3.18.1
3.18.0
3.17.6
3.17.5
3.17.4
3.17.2
3.17.1
3.17.0
3.16.0
3.15.0
3.14.3
3.14.1
3.14.0
3.13.3
3.13.1
3.12.3
3.12.2
3.12.1
3.12.0
3.11.12
3.11.11
3.11.9
3.11.8
3.11.6
3.11.5
3.11.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
ArkhamJS React Flow Example App
arkhamjs.io
nitrogenlabs/arkhamjs
@nlabs/arkhamjs-example-flow-react
/
src
/
actions
/
AppActions
/
AppActions.js
7 lines
(4 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
{
Flux
,
FluxAction
}
from
'@nlabs/arkhamjs'
;
import
{
AppConstants
}
from
'../../constants/AppConstants'
;
export
const
updateContent = (
content
:
string
):
Promise
<
FluxAction
> =>
Flux
.
dispatch
({content,
type
:
AppConstants
.
UPDATE_CONTENT
});