mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-12 13:12:46 +00:00
Getting splatsheet rolling
This commit is contained in:
27
client/splatsheet/sheetEditor/sheetEditor.jsx
Normal file
27
client/splatsheet/sheetEditor/sheetEditor.jsx
Normal file
@@ -0,0 +1,27 @@
|
||||
var React = require('react');
|
||||
var _ = require('lodash');
|
||||
var cx = require('classnames');
|
||||
|
||||
var SheetEditor = React.createClass({
|
||||
getDefaultProps: function() {
|
||||
return {
|
||||
code : '',
|
||||
onChange : function(){}
|
||||
};
|
||||
},
|
||||
|
||||
handleCodeChange : function(e){
|
||||
this.props.onChange(e.target.value);
|
||||
},
|
||||
|
||||
render : function(){
|
||||
return <div className='sheetEditor'>
|
||||
SheetEditor Ready!
|
||||
|
||||
<textarea value={this.props.code} onChange={this.handleCodeChange} />
|
||||
|
||||
</div>
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = SheetEditor;
|
||||
Reference in New Issue
Block a user