Skip to content

Commit 4ef15ea

Browse files
urakozzSTRML
authored andcommitted
Resolve warning about getDerivedStateFromProps (#117)
This change should resolve warning mentioned in this issue facebook/react#12562 `getDerivedStateFromProps(): A valid state object (or null) must be returned`
1 parent 3a80134 commit 4ef15ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ResizableBox.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default class ResizableBox extends React.Component<ResizableProps, State>
3838
propsHeight: props.height,
3939
};
4040
}
41+
return null;
4142
}
4243

4344
onResize = (e: SyntheticEvent<>, data: ResizeCallbackData) => {

0 commit comments

Comments
 (0)