babel-plugin-react-docgen
Version:
Babel plugin to add react-docgen info into your code
20 lines (17 loc) • 407 B
JavaScript
/**
* Super tiny component
*/
class Component extends React.Component {
render() { return null }
}
Component.propTypes = {
/** Description for children */
children: React.PropTypes.string.isRequired,
/**
* What happens onClick stays onClick
*/
onClick: React.PropTypes.func,
/** Fancy styles in here */
style: React.PropTypes.object,
}
export default withHoc()(deeperHoc(Component))