Created
May 2, 2014 14:13
-
-
Save m4tthumphrey/a0bd2e63531e847289cf 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
var ToolboxBlock = React.createClass({ | |
handleClick: function() { | |
// need to reference the div here | |
}, | |
render: function() { | |
var type = this.props.type; | |
var className = 'block block-type-'+type; | |
var blockId = 'block-'+Math.random(); | |
return ( | |
<div onClick={this.handleClick} className={className} ref={blockId}>{type}</div> | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment