From d84dd300c9c50fb4c4274f905de5351eb46942a1 Mon Sep 17 00:00:00 2001 From: singuerinc Date: Mon, 8 Oct 2018 13:34:08 +0200 Subject: [PATCH] refactor: functional components --- app/components/Root.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/app/components/Root.tsx b/app/components/Root.tsx index 475292a..7a98cf0 100644 --- a/app/components/Root.tsx +++ b/app/components/Root.tsx @@ -8,15 +8,11 @@ interface Props { store: Store; } -export class Root extends React.Component { - render() { - return ( - - - - ); - } -} +export const Root = (props: Props) => ( + + + +); injectGlobal` * {