factorio-server-manager/ui/index.js
2018-07-21 16:53:53 +02:00

17 lines
478 B
JavaScript

import React from 'react';
import ReactDOM from 'react-dom';
import {Route} from 'react-router';
import App from './App/App.jsx';
import LoginContent from './App/components/LoginContent.jsx';
import {BrowserRouter, Switch} from "react-router-dom";
ReactDOM.render((
<BrowserRouter>
<Switch>
<Route path="/login" component={LoginContent} />
<Route component={App} />
</Switch>
</BrowserRouter>
), document.getElementById('app'))