Skip to content

Commit

Permalink
refactor: functional components
Browse files Browse the repository at this point in the history
  • Loading branch information
singuerinc committed Oct 8, 2018
1 parent 566448e commit d84dd30
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions app/components/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ interface Props {
store: Store;
}

export class Root extends React.Component<Props> {
render() {
return (
<Provider store={this.props.store}>
<App />
</Provider>
);
}
}
export const Root = (props: Props) => (
<Provider store={props.store}>
<App />
</Provider>
);

injectGlobal`
* {
Expand Down

0 comments on commit d84dd30

Please sign in to comment.