Last active
October 30, 2015 07:29
-
-
Save devknoll/c214632b41d59cda4271 to your computer and use it in GitHub Desktop.
This file contains hidden or 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, { PropTypes } from 'react'; | |
export default Counter = ({ counter = 0 }) => ( | |
<div clicked={{ counter: counter + 1 }}>{counter}</div> | |
); | |
Counter.propTypes = { | |
counter: PropTypes.number | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment