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
/* This is the Root component mainly initializes Redux and React Router. */ | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Provider } from 'react-redux'; | |
import { Switch, Route } from 'react-router-dom'; | |
import { ConnectedRouter } from 'react-router-redux'; | |
import history from './common/history'; | |
function renderRouteConfigV3(routes, contextPath) { |
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
const path = require('path'); | |
const http = require('http'); | |
const express = require('express'); | |
const rekitStudioMiddleWare = require('rekit-studio/middleware'); | |
const fallback = require('express-history-api-fallback'); | |
const pkgJson = require('../package.json'); | |
function startStudioServer() { | |
console.log('Starting Rekit Studio...'); | |
const app = express(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[add your bin description]" /> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<script src="http://fb.me/react-0.11.0.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |