Skip to content

Commit

Permalink
use class for App to enable hmr 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Dec 20, 2016
1 parent 896bbc0 commit 68e54ae
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions ui-skeleton/redux/ui/src/page/example/components/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import React from 'react';
import React, { Component } from 'react';
import Hello from '../containers/HelloWorld';

const App = () => (
<div>
<Hello />
</div>
);
export default class App extends Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
<Hello />
</div>
);
}
}

export default App;
if (module.hot) {
module.hot.accept();
}

0 comments on commit 68e54ae

Please sign in to comment.