import React from 'react';
import Router, { Route, DefaultRoute, NotFoundRoute, RouteHandler } from 'react-router';
import ga, { Initializer as GAInitiailizer } from 'react-google-analytics';
import Home from './home';
import Share from './share';
import Head from './head';
import ErrorView from './error';
const App = React.createClass({
render: function () {
return (
);
}
});
const routes = (
);
if (typeof window !== 'undefined') {
console.info('Time since page started rendering: ' + (Date.now() - timerStart) + 'ms'); // eslint-disable-line no-undef
Router.run(routes, Router.HistoryLocation, function (Handler) {
if (typeof window.recents !== 'undefined') {
React.render(, document);
} else if (typeof shares !== 'undefined') {
React.render(, document);
}
});
ga('create', 'UA-66209-8', 'auto');
ga('send', 'pageview');
}
export { routes };