mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-12 08:52:39 +00:00
26 lines
506 B
JavaScript
26 lines
506 B
JavaScript
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'>
|
|
<h2>Sheet Template</h2>
|
|
<textarea value={this.props.code} onChange={this.handleCodeChange} />
|
|
</div>
|
|
}
|
|
});
|
|
|
|
module.exports = SheetEditor;
|