0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 09:42:43 +00:00

Increasing size of first letter, and setting up for ajax communication

This commit is contained in:
Scott Tolksdorf
2015-12-20 13:24:23 -05:00
parent 3059586e20
commit ef7a500940
8 changed files with 92 additions and 52 deletions

View File

@@ -2,6 +2,11 @@ var React = require('react');
var _ = require('lodash');
var cx = require('classnames');
var PHB = require('../phb/phb.jsx');
var Editor = require('../editor/editor.jsx');
var request = require("superagent");
var EditPage = React.createClass({
getDefaultProps: function() {
return {
@@ -10,13 +15,26 @@ var EditPage = React.createClass({
};
},
getInitialState: function() {
return {
text: this.props.text
};
},
handleTextChange : function(text){
this.setState({
text : text
});
//Ajax time
},
render : function(){
var self = this;
return(
<div className='editPage'>
{this.props.id}
EditPage Ready!
{this.props.text}
<Editor text={this.state.text} onChange={this.handleTextChange} />
<PHB text={this.state.text} />
</div>
);
}