Skip to content

Commit

Permalink
fix(docz-core): add support to react hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Oct 31, 2018
1 parent f90fefc commit f26a990
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 %>'

import { imports } from './imports'
Expand All @@ -17,4 +17,9 @@ const Root = () => (
/>
)

// TODO: this is temporary until react-hot-loader fix hooks issues
setConfig({
pureSFC: true,
})

export default hot(module)(Root)

0 comments on commit f26a990

Please sign in to comment.