From e0c8f37ae740a672d4131dd9c0692359dfca601d Mon Sep 17 00:00:00 2001 From: Mark Fayngersh Date: Sun, 28 Feb 2016 16:37:42 -0500 Subject: [PATCH] make top-level App component stateless --- src/common/components/App.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/common/components/App.js b/src/common/components/App.js index 8e349f0..f5ac32a 100644 --- a/src/common/components/App.js +++ b/src/common/components/App.js @@ -1,12 +1,10 @@ import React from 'react'; -export default class App extends React.Component { - render() { - return ( -
- {this.props.children} -
- ); - } +export default ({children}) => { + return ( +
+ {children} +
+ ); }