Skip to content

Commit

Permalink
refactor: use universa interface for <View>
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 4, 2018
1 parent 41e4f3c commit 75083eb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/View/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
export const View = (props) => {
const {children} = props;
import {render} from 'react-universal-interface';

if (!children) {
return null;
}

return typeof children === 'function' ? children(props) : children;
};
export const View = (props) => render(props, null);

0 comments on commit 75083eb

Please sign in to comment.