Created
January 14, 2015 04:17
-
-
Save kevinold/8be4c986f3659887fe4f 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
/*** @jsx React.DOM */ | |
//var React = require('React'); | |
var Attachment = React.createClass({ | |
getInitialState: function() { | |
return { | |
intent: false | |
}; | |
}, | |
createUpload: function() { | |
// | |
}, | |
toggleIntent: function(event){ | |
var val = event.target.checked; | |
this.setState({ | |
intent: val | |
}); | |
}, | |
render: function() { | |
return ( | |
<div className="checkbox"> | |
<label> | |
<input type="checkbox" id="test" checked={this.state.intent} onChange={this.toggleIntent} /> | |
{this.state.intent ? 'true' : 'false'} | |
</label> | |
</div> | |
) | |
} | |
}); | |
//module.exports = Attachment; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment