diff --git a/www/src/pages/docs/bound-action-creators.js b/www/src/pages/docs/bound-action-creators.js index b54ecda08661c..693c3a87fe1d6 100644 --- a/www/src/pages/docs/bound-action-creators.js +++ b/www/src/pages/docs/bound-action-creators.js @@ -25,6 +25,24 @@ class ActionCreatorsDocs extends React.Component { and dispatch Redux actions when called) which you can use to manipulate state on your site.
+
+ The object
+ {` `}
+ boundActionCreators
+ {` `}
+ contains the functions and these can be individually extracted by
+ using ES6 object destructuring.
+
// For function createNodeField +exports.onCreateNode = ({ node, getNode, boundActionCreators }) => { + const { createNodeField } = boundActionCreators +} + `, + }} + />Functions