aboutsummaryrefslogtreecommitdiffstats
path: root/docs/example-feature/actions.js
diff options
context:
space:
mode:
authorLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-03-12 18:20:56 +0100
committerLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-03-12 18:20:56 +0100
commitd51283b5f89d42814a340b7cd77e6544d23aa243 (patch)
treef0e56e577d53987d22db44a8a87e5f37b8ea6ea8 /docs/example-feature/actions.js
parentadd useful helpers for building standalone app features (diff)
downloadferdium-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.js10
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 @@
1import PropTypes from 'prop-types';
2import { createActionsFromDefinitions } from '../../src/actions/lib/actions';
3
4export const exampleFeatureActions = createActionsFromDefinitions({
5 greet: {
6 name: PropTypes.string.isRequired,
7 },
8}, PropTypes.checkPropTypes);
9
10export default exampleFeatureActions;