diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-03-12 18:20:56 +0100 |
---|---|---|
committer | Dominik Guzei <dominik.guzei@gmail.com> | 2019-03-12 18:20:56 +0100 |
commit | d51283b5f89d42814a340b7cd77e6544d23aa243 (patch) | |
tree | f0e56e577d53987d22db44a8a87e5f37b8ea6ea8 /docs/example-feature/actions.js | |
parent | add useful helpers for building standalone app features (diff) | |
download | ferdium-app-d51283b5f89d42814a340b7cd77e6544d23aa243.tar.gz ferdium-app-d51283b5f89d42814a340b7cd77e6544d23aa243.tar.zst ferdium-app-d51283b5f89d42814a340b7cd77e6544d23aa243.zip |
add example feature template to docs folder
Diffstat (limited to 'docs/example-feature/actions.js')
-rw-r--r-- | docs/example-feature/actions.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/example-feature/actions.js b/docs/example-feature/actions.js new file mode 100644 index 000000000..c4d49b708 --- /dev/null +++ b/docs/example-feature/actions.js | |||
@@ -0,0 +1,10 @@ | |||
1 | import PropTypes from 'prop-types'; | ||
2 | import { createActionsFromDefinitions } from '../../src/actions/lib/actions'; | ||
3 | |||
4 | export const exampleFeatureActions = createActionsFromDefinitions({ | ||
5 | greet: { | ||
6 | name: PropTypes.string.isRequired, | ||
7 | }, | ||
8 | }, PropTypes.checkPropTypes); | ||
9 | |||
10 | export default exampleFeatureActions; | ||