function (_super) { __extends(Routing, _super); function Routing() { return _super.apply(this, arguments) || this; } Routing.prototype.render = function () { return (React.createElement(react_router_1.Router, { history: react_router_1.hashHistory }, React.createElement(react_router_1.Route, { path: "/login", component: Login_1.default }, " "), React.createElement(react_router_1.Route, { path: "/main", component: AppContainer_1.default }), React.createElement(react_router_1.Redirect, { from: "/", to: "/login" }))); }; return Routing; }(React.Component)
function() { var Router = ReactRouter; var Route = Router.Route; var DefaultRoute = Router.DefaultRoute; var routes = ( <Route handler={App} path="/"> <Route name="edit/:tel" handler={AddEditContactPage}/> <Route name="add" handler={AddEditContactPage}/> <DefaultRoute handler={MainPage}/> </Route> ); /* var HistoryLocation = Router.HistoryLocation; var HashLocation = Router.HashLocation; HistoryLocation.replace(HashLocation.getCurrentPath()); */ Router.run(routes, function (Handler) { React.render(<Handler/>, document.body); }); }()
location = _this$props3.location, _render = _this$props3.render; return _react.default.createElement(_reactRouter.Route, { location: previousLocation || location, render: function render() {