anthonyshort / deku

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

Question: why deku.createApp? #391

Open rstacruz opened 8 years ago

rstacruz commented 8 years ago

I see this was changed sometime between rc11 and rc15. What was the rationale for this?

anthonyshort commented 8 years ago

The idea is that the core of deku should be a element, a diffing function, and then two renderers that know how to respond to the diff. But if we only go that far, we're not help users and there will be a huge barrier to entry.

So I wanted to seperate the idea of kickstarting an app. The one included with Deku will be simple and work most of the time, but people can roll their own if they want to do something different. It will hook everything up to the store so users can just start building a UI, similar to Elms StartApp.