Last active
May 3, 2019 21:26
-
-
Save bharat-tiwari/1051dd1748d0b02b28aac67c7e6c7cfc to your computer and use it in GitHub Desktop.
Test component to test styleguidist document generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import PropTypes from "prop-types"; | |
/** | |
* | |
* A Test component created to test React Styleguidist documentation | |
* @export | |
* @class TestDocumentationBuilding | |
* @extends {React.Component} | |
*/ | |
export default class TestDocumentationBuilding extends React.Component { | |
static propTypes = { | |
/** | |
* A test prop. | |
*/ | |
testProp: PropTypes.string | |
}; | |
static defaultProps = { | |
testProp: "test" | |
}; | |
render() { | |
return ( | |
<div> | |
Test content | |
{this.props.testProp} | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment