Skip to content

Instantly share code, notes, and snippets.

@ecaepsey
Created March 28, 2019 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecaepsey/24f68a189f84dadba38c6f2ed19ba4b3 to your computer and use it in GitHub Desktop.
Save ecaepsey/24f68a189f84dadba38c6f2ed19ba4b3 to your computer and use it in GitHub Desktop.
react component
import React from 'react';
export default class Increment extends React.Component {
static defaultProps = {
count: 0,
};
render() {
const { count } = this.props;
return (
<div>
<button>{count}</button>
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment