Skip to content

Commit

Permalink
Update bound-action-creators.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews authored Feb 15, 2018
1 parent 81366c0 commit b7c197e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions www/src/pages/docs/bound-action-creators.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,10 @@ class ActionCreatorsDocs extends React.Component {
by using ES6 object destructuring.
</p>
<pre>
<code
className="language-javascript"
dangerouslySetInnerHTML={{
__html: `// For function createNodeField
exports.onCreateNode = ({ node, getNode, boundActionCreators }) => {
const { createNodeField } = boundActionCreators
}`,
}}
/>
<code class=" language-javascript"><span class="token comment">// For function createNodeField</span>
exports<span class="token punctuation">.</span><span class="token function-variable function">onCreateNode</span> <span class="token operator">=</span> <span class="token punctuation">(</span><span class="token punctuation">{</span> node<span class="token punctuation">,</span> getNode<span class="token punctuation">,</span> boundActionCreators <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
<span class="token keyword">const</span> <span class="token punctuation">{</span> createNodeField <span class="token punctuation">}</span> <span class="token operator">=</span> boundActionCreators
<span class="token punctuation">}</span></code>
</pre>
<h2 css={{ marginBottom: rhythm(1 / 2) }}>Functions</h2>
<ul css={{ ...scale(-1 / 5) }}>
Expand Down

0 comments on commit b7c197e

Please sign in to comment.