Skip to content

Commit e0c8f37

Browse files
committed
make top-level App component stateless
1 parent 9bdb23f commit e0c8f37

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/common/components/App.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import React from 'react';
22

33

4-
export default class App extends React.Component {
5-
render() {
6-
return (
7-
<div id="container">
8-
{this.props.children}
9-
</div>
10-
);
11-
}
4+
export default ({children}) => {
5+
return (
6+
<div id="container">
7+
{children}
8+
</div>
9+
);
1210
}

0 commit comments

Comments
 (0)