rsnext/packages/next/client/next.js

15 lines
274 B
JavaScript
Raw Normal View History

import { initialize, hydrate, version, router, emitter } from './'
2016-10-06 01:52:50 +02:00
window.next = {
version,
// router is initialized later so it has to be live-binded
get router() {
return router
},
emitter,
}
initialize({})
.then(() => hydrate())
.catch(console.error)