Created
May 3, 2019 21:16
-
-
Save bharat-tiwari/caba0516566b3cc971a886f37861a261 to your computer and use it in GitHub Desktop.
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"; | |
/** | |
* | |
* 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