Skip to content

Commit 8456058

Browse files
committed
Fix
1 parent b7c197e commit 8456058

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

www/src/pages/docs/bound-action-creators.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@ class ActionCreatorsDocs extends React.Component {
3030
{` `}
3131
<code>boundActionCreators</code>
3232
{` `}
33-
contains the functions and these can be individually extracted
34-
by using ES6 object destructuring.
33+
contains the functions and these can be individually extracted by
34+
using ES6 object destructuring.
3535
</p>
36-
<pre>
36+
<pre
37+
dangerouslySetInnerHTML={{
38+
__html: `
3739
<code class=" language-javascript"><span class="token comment">// For function createNodeField</span>
3840
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>
3941
<span class="token keyword">const</span> <span class="token punctuation">{</span> createNodeField <span class="token punctuation">}</span> <span class="token operator">=</span> boundActionCreators
4042
<span class="token punctuation">}</span></code>
41-
</pre>
43+
`,
44+
}}
45+
/>
4246
<h2 css={{ marginBottom: rhythm(1 / 2) }}>Functions</h2>
4347
<ul css={{ ...scale(-1 / 5) }}>
4448
{this.props.data.allDocumentationJs.edges.map(({ node }, i) => (

0 commit comments

Comments
 (0)