Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Update docs and support empty PropTypes #11

Closed
coopy opened this issue Dec 14, 2015 · 2 comments
Closed

Update docs and support empty PropTypes #11

coopy opened this issue Dec 14, 2015 · 2 comments

Comments

@coopy
Copy link
Contributor

coopy commented Dec 14, 2015

  1. Update the source prop docs to say source={docgen.parse(require("!!raw!../src/components/ur-awsum-component"))
  2. Add support for empty PropTypes
@boygirl
Copy link
Contributor

boygirl commented Dec 14, 2015

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
Copy link
Contributor Author

coopy commented Dec 14, 2015

With the existing boilerplate component (with an undefined Component.propTypes), Ecology bombs: api.js:24 Uncaught TypeError: Cannot convert undefined or null to object

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants