Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz-core): react hot loader config for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 17, 2018
1 parent 3baad4a commit 444cac2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/docz-core/templates/root.tpl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { hot } from 'react-hot-loader'
import { setConfig, hot } from 'react-hot-loader'
import Theme from '<%- theme %>'

<% if (wrapper) {%>import Wrapper from '<%- wrapper %>'<%}%>
Expand All @@ -8,4 +8,9 @@ const Root = () => (
<Theme <% if (wrapper) {%>wrapper={Wrapper}<%}%> />
)

setConfig({
ignoreSFC: true,
pureRender: true,
})

export default hot(module)(Root)

0 comments on commit 444cac2

Please sign in to comment.