anthonyshort / deku

Render interfaces using pure functions and virtual DOM
https://github.com/anthonyshort/deku/tree/master/docs
3.42k stars 131 forks source link

import { dom, render } from 'deku' not working #318

Closed rstacruz closed 8 years ago

rstacruz commented 8 years ago

require('deku') returns:

{ default: { element, string, dom } }

Because:

export default {
  element,
  string,
  dom
}

It should instead be:

export { element, string, dom }
anthonyshort commented 8 years ago

Just fixed this in 2.0.0-rc5

anthonyshort commented 8 years ago

Let me know if it's working correctly for you now. I'm going to remove all those default object exports. I didn't realize it was a weird thing with Babel :|

rstacruz commented 8 years ago

Working good!

On Tuesday, December 29, 2015, Anthony Short notifications@github.com wrote:

Closed #318 https://github.com/dekujs/deku/issues/318.

— Reply to this email directly or view it on GitHub https://github.com/dekujs/deku/issues/318#event-501888091.