Update docs and support empty `PropTypes`
Closed this issue · 2 comments
coopy commented
- Update the source prop docs to say
source={docgen.parse(require("!!raw!../src/components/ur-awsum-component"))
- Add support for empty PropTypes
boygirl commented
I think empty empty PropTypes
is already supported in that you can leave off the source prop, and the prop table wont be rendered.
coopy commented
With the existing boilerplate component (with an undefined
Component.propTypes
), Ecology bombs: api.js:24 Uncaught TypeError: Cannot convert undefined or null to object