1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 01:22:48 +00:00

major file refactor - fix disconnecting bug

This commit is contained in:
2017-06-30 20:23:05 -05:00
parent 03fa82b2a2
commit de6332e89c
39 changed files with 73 additions and 28 deletions

18
client/app/app.js Normal file
View File

@@ -0,0 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import Wrapper from './Wrapper';
import Home from './pages/Home/Home';
import Soundboard from './pages/Soundboard/Soundboard';
import NotFound from './pages/NotFound/NotFound';
ReactDOM.render(
<Router history={browserHistory}>
<Route path="/" component={Wrapper}>
<IndexRoute component={Home}/>
<Route path="/soundboard" component={Soundboard}/>
<Route path="*" component={NotFound}/>
</Route>
</Router>
, document.getElementById('app'));