0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-12 21:52:42 +00:00

Getting ready to switch to jsx

This commit is contained in:
Scott Tolksdorf
2016-05-16 22:03:20 -04:00
parent 15ffb138eb
commit bfcf6ca7f2
4 changed files with 16 additions and 4 deletions

View File

@@ -18,6 +18,13 @@ var TPK = React.createClass({
};
},
//remove later
componentDidMount: function() {
this.setState({
sheetCode : localStorage.getItem('temp')
})
},
handleSplitMove : function(){
this.refs.editor.update();
},
@@ -25,7 +32,9 @@ var TPK = React.createClass({
handleCodeChange : function(code){
this.setState({
sheetCode : code
})
});
localStorage.setItem('temp', code);
},
render : function(){