clean up development config

This commit is contained in:
Eric Hulburd
2016-02-09 11:16:49 -06:00
parent 109ad432bb
commit a334afbc01
20 changed files with 170 additions and 111 deletions

View File

@@ -1,7 +1,11 @@
import React from 'react';
import layoutRt from './layout.rt.js';
var Layout = React.createClass({
getInitialState: function() {
getInitialState: function(){
return {view: "????"};
},
handleResize: function(e) {
@@ -14,11 +18,12 @@ var Layout = React.createClass({
setView: function(event) {
var layout = this;
console.log(event.target.value)
layout.setState({view: event.target.value});
},
render: function() {
return layoutRt.bind(this);
return layoutRt.call(this);
}
});

View File

@@ -1,4 +1,6 @@
<div>
<div id="layout">
<h1>{this.state.view}</h1>
<select onChange="{this.setView}">
<option value="savings">Savings</option>
<option value="production">Production</option>

View File

@@ -1,5 +1,5 @@
import React from 'react/addons';
import React from 'react';
import _ from 'lodash';
export default function () {
return React.createElement('div', {}, React.createElement('select', { 'onChange': this.setView }, React.createElement('option', { 'value': 'savings' }, 'Savings'), React.createElement('option', { 'value': 'production' }, 'Production')));
return React.createElement('div', { 'id': 'layout' }, React.createElement('h1', {}, this.state.view), React.createElement('select', { 'onChange': this.setView }, React.createElement('option', { 'value': 'savings' }, 'Savings'), React.createElement('option', { 'value': 'production' }, 'Production')));
};