This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MyParentChange = React.createClass({ | |
getInitialState: function() { | |
return { | |
data: [], value: {}, showOutput: false | |
} | |
}, | |
componentDidMount: function() { | |
$.get(this.props.source, function(result) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bodyParser from 'body-parser'; | |
import compression from 'compression'; | |
import express from 'express'; | |
import cookieParser from 'cookie-parser'; | |
import Loadable from 'react-loadable'; | |
import render from './render'; | |
var request = require('request'); | |
var fs = require("fs"); | |
const app = express(); |