diff --git a/packages/react-json-tree/src/index.tsx b/packages/react-json-tree/src/index.tsx index 50a5524b..8b66feae 100644 --- a/packages/react-json-tree/src/index.tsx +++ b/packages/react-json-tree/src/index.tsx @@ -104,7 +104,7 @@ function getStateFromProps(props: Props) { export default class JSONTree extends React.Component { static propTypes = { - data: PropTypes.any.isRequired, + data: PropTypes.any, hideRoot: PropTypes.bool, theme: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), invertTheme: PropTypes.bool,