Skip to content

Commit

Permalink
Required.
Browse files Browse the repository at this point in the history
  • Loading branch information
hew committed Jul 2, 2015
1 parent a2b6300 commit f46066b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ if (typeof document !== 'undefined') {
})
}

export default Entry = function render (locals, callback) {
let Entry = function render (locals, callback) {
Router.run(Routes, locals.path, function (Handler) {
var html = React.renderToString(React.createElement(Handler, locals))
callback(null, '<!DOCTYPE html>' + html)
})
}
}

export default Entry

0 comments on commit f46066b

Please sign in to comment.