Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What magic is under the hood instead of virtual-dom? #19

Open
davojan opened this issue Jul 11, 2016 · 7 comments
Open

What magic is under the hood instead of virtual-dom? #19

davojan opened this issue Jul 11, 2016 · 7 comments
Labels

Comments

@davojan
Copy link

davojan commented Jul 11, 2016

How the engine detects what DOM should be changed on update without virtual-dom?

@Mevrael
Copy link

Mevrael commented Sep 22, 2016

Why do you need Virtual DOM?

@antonmedv
Copy link
Owner

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
Copy link

@Elfet did you complete your article? Wanna read :)

@antonmedv
Copy link
Owner

@fliptheweb i'm always gonna to, but can not find time now :(

@lijinpengFj
Copy link

@antonmedv did you finish the article? I'm really want to know the keys of monkberry.

@antonmedv
Copy link
Owner

@lijinpeng7364 nope, sorry. A lot of work)

@lijinpengFj
Copy link

@antonmedv ok, hope someday you can finish it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants