Skip to content

Commit

Permalink
docs(ComponentDoc): show props by default (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason authored Oct 28, 2016
1 parent 0aed385 commit 00e856a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/app/Components/ComponentDoc/ComponentDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ export default class ComponentDoc extends Component {
_meta: PropTypes.object,
}

state = {
showPropsFor: null,
componentWillMount() {
this.setState({
showPropsFor: this.props._meta.name,
})
}

componentWillReceiveProps(nextProps) {
Expand Down

0 comments on commit 00e856a

Please sign in to comment.