diff options
| author | Haishan <[email protected]> | 2018-12-24 23:57:03 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2018-12-25 00:01:58 +0800 |
| commit | 6326af3d6c4288ff1e8ca1e56542fcdce174bc5d (patch) | |
| tree | 2504dd76e36b2ed67aac25f1d71005d2fa1dc8a3 /src/components | |
| parent | fe5ff2da4064ca73fa92579d0a941bff8fa2a87b (diff) | |
chore: re-enable react-hot-loader
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Root.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/components/Root.js b/src/components/Root.js index dc96e22..e69e776 100644 --- a/src/components/Root.js +++ b/src/components/Root.js @@ -1,7 +1,7 @@ import React from 'react'; import { Provider } from 'm/store'; import { HashRouter as Router, Route } from 'react-router-dom'; -// import { hot } from 'react-hot-loader'; +import { hot } from 'react-hot-loader/root'; // import createHistory from 'history/createHashHistory'; // import createHistory from 'history/createBrowserHistory'; import ErrorBoundary from 'c/ErrorBoundary'; @@ -45,11 +45,4 @@ const Root = () => ( // <Route exact path="/__0" component={StyleGuide} /> // <Route exact path="/__1" component={Loading} /> -// hot export Root -// https://github.com/gaearon/react-hot-loader/tree/v4.0.1#getting-started - -// RHL doesn't compatible with React Hook yet, see: -// https://github.com/gaearon/react-hot-loader/issues/1088 -// after it's working, uncommment below line and remove "//" in the babelrc -// export default hot(module)(Root); -export default Root; +export default hot(Root); |
