Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Feb 15, 2018
1 parent b7c197e commit 8456058
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions www/src/pages/docs/bound-action-creators.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ class ActionCreatorsDocs extends React.Component {
{` `}
<code>boundActionCreators</code>
{` `}
contains the functions and these can be individually extracted
by using ES6 object destructuring.
contains the functions and these can be individually extracted by
using ES6 object destructuring.
</p>
<pre>
<pre
dangerouslySetInnerHTML={{
__html: `
<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) }}>
{this.props.data.allDocumentationJs.edges.map(({ node }, i) => (
Expand Down

0 comments on commit 8456058

Please sign in to comment.