return null for ResizeOb

This commit is contained in:
zombiej 2019-04-07 10:26:00 +08:00
parent d81ce6ee99
commit 3a9f81d6c1

View File

@ -53,7 +53,7 @@ class ReactResizeObserver extends React.Component<ResizeObserverProps, {}> {
}
render() {
const { children } = this.props;
const { children = null } = this.props;
return children;
}
}