What magic is under the hood instead of virtual-dom?
davojan opened this issue ยท 7 comments
davojan commented
How the engine detects what DOM should be changed on update without virtual-dom?
Mevrael commented
Why do you need Virtual DOM?
antonmedv commented
Hi,
I'm going to write an article about how Monkberry works in next month. Will explain all there. Short answer is what templates compiled from this:
<div>
...
<h1>{{ title }}</h1>
...
</div>
To something like this:
function (state) {
h1.textContent = state.title;
}
And some king of "virtual dom" used on top/component level.
fliptheweb commented
@Elfet did you complete your article? Wanna read :)
antonmedv commented
@fliptheweb i'm always gonna to, but can not find time now :(
lijinpengFj commented
@antonmedv did you finish the article? I'm really want to know the keys of monkberry.
antonmedv commented
@lijinpeng7364 nope, sorry. A lot of work)
lijinpengFj commented
@antonmedv ok, hope someday you can finish it.