Skip to content

Instantly share code, notes, and snippets.

@bharat-tiwari
Created May 3, 2019 21:16
Show Gist options
  • Save bharat-tiwari/caba0516566b3cc971a886f37861a261 to your computer and use it in GitHub Desktop.
Save bharat-tiwari/caba0516566b3cc971a886f37861a261 to your computer and use it in GitHub Desktop.
import React from "react";
import PropTypes from "prop-types";
/**
*
* Button that counts how many times it was pressed and exposes a `@public` method to reset itself.
* @export
* @class TestDocumentationBuilding
* @extends {React.Component}
*/
export default class TestDocumentationBuilding extends React.Component {
static propTypes = {
/**
* A test prop.
*
* @description 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