Open marcello3d opened 9 years ago
react-docgen will create a recursive structure for React.PropTypes.shape props.
react-docgen
React.PropTypes.shape
E.g.:
propTypes: { /** `foo` is a structured object */ foo: React.PropTypes.shape({ /** A sub-property of `foo` */ bar: React.PropTypes.number }) }
It'd be sweet to show this in the Properties overview. (react-docgen already supports shapes and generates JSON for them.)
I take that back, react-docgen doesn't fully support it yet: https://github.com/reactjs/react-docgen/issues/21
react-docgen now supports it
react-docgen
will create a recursive structure forReact.PropTypes.shape
props.E.g.:
It'd be sweet to show this in the Properties overview. (react-docgen already supports shapes and generates JSON for them.)