diff --git a/packages/docz-core/templates/root.tpl.js b/packages/docz-core/templates/root.tpl.js index 6b6222cee..a50b3ace9 100644 --- a/packages/docz-core/templates/root.tpl.js +++ b/packages/docz-core/templates/root.tpl.js @@ -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 %>'<%}%> @@ -8,4 +8,9 @@ const Root = () => ( wrapper={Wrapper}<%}%> /> ) +setConfig({ + ignoreSFC: true, + pureRender: true, +}) + export default hot(module)(Root)