 React               = require 'react'
 ReactDOM            = require 'react-dom'
+render              = ReactDOM.render
 ReactRouter         = require 'react-router'
 Router              = ReactRouter.Router
 Route               = ReactRouter.Route
 IndexRoute          = ReactRouter.IndexRoute
-DefaultRoute        = ReactRouter.DefaultRoute
-Redirect            = ReactRouter.Redirect
 
 App                 = require '../components/app'
 Course              = require '../components/course'

  </Route>
)

$ ->
  console.log routes
  react_root =  document.getElementById('react_root')
  ReactDOM.render((<Router>{routes}</Router>), react_root)

  <Route path='/' component={App}>
    <IndexRoute component={CourseCreatorButton} />
    <Route path='recent-activity' component={RecentActivityHandler}>
      <IndexRoute component={DidYouKnowHandler} />
      <Route path='plagiarism' component={PlagiarismHandler} />
      <Route path='recent-edits' component={RecentEditsHandler} />
    </Route>
    <Route path='courses'>
      <Route path=':course_school/:course_title' component={Course}>
        <IndexRoute component={OverviewHandler} />
        <Route path='timeline' component={TimelineHandler}>
          <Route path='wizard' component={Wizard} />
          <Route path='dates' component={Dates} />
        </Route>
