require('./main.styl');

import { Router, Route, hashHistory, IndexRoute } from 'react-router'
import Book from '../book/book.jsx'
import Library from '../library/library.jsx'
import Nav from '../nav/nav.jsx'
import Profile from '../profile/profile.jsx'
import Storage from '../storage/storage.jsx'

render((
  <Router history={hashHistory}>
    <Route path="/" component={Nav}>
      <IndexRoute component={Library}/>
      <Route path="/storage" component={Storage}>
        <Route path="/storage/:bookId" component={Book}/>
      </Route>
      <Route path="/profile" component={Profile}/>
    </Route>
  </Router>
), document.getElementById('app'))

require('./main.styl');

import { render } from 'react-dom'
import { Router, Route, hashHistory, IndexRoute } from 'react-router'
import Book from '../book/book.jsx'
import Library from '../library/library.jsx'
import Nav from '../nav/nav.jsx'
import Profile from '../profile/profile.jsx'
import Storage from '../storage/storage.jsx'

render((
  <Router history={hashHistory}>
    <Route path="/" component={Nav}>
      <IndexRoute component={Library}/>
      <Route path="/storage" component={Storage}>
        <Route path="/storage/:bookId" component={Book}/>
      </Route>
      <Route path="/profile" component={Profile}/>
    </Route>
  </Router>
), document.getElementById('app'))

Revert "rm import { render } from 'react-dom'"
Revert "rm import { render } from 'react-dom'"

This reverts commit a2705afe1bc8a0e60349d5a0b3f62004b856e8ce.
