Skip to content

Instantly share code, notes, and snippets.

@bharat-tiwari
Last active May 3, 2019 21:26
Show Gist options
  • Save bharat-tiwari/1051dd1748d0b02b28aac67c7e6c7cfc to your computer and use it in GitHub Desktop.
Save bharat-tiwari/1051dd1748d0b02b28aac67c7e6c7cfc to your computer and use it in GitHub Desktop.
Test component to test styleguidist document generation
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