'use strict';

var React = require('react'),
    Router = require('react-router'),
    runRouter = require('./runRouter')

// Client side rendering
var renderPage = function(Handler, data) {
    React.render(React.createElement(Handler, {data: cleanData(data)}), document)
}

module.exports = function(routes) {
    runRouter(routes, Router.HistoryLocation, function(Handler, data) {
        renderPage(Handler, data)
    })
}

@@ -241,23 +241,12 @@
 ta: 
-cleanData(
 data
-)
 %7D), 

Fix cleanData