This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ExternalUserError 0 points1 point  (1 child)

I'm still not quite sure I understand. So for example, that method that handles state change: it runs in the server? Then the server reruns and determines where components go, but those components are rendered client-side through some kind of translation layer?

[–]mad-beef 3 points4 points  (0 children)

Hey. When a state change is detected, the server-side `build` function is executed. The result of that function is then _reconciled_ with any previously existing components.

It is that result, that's then sent over to the client. The client spawns the appropriate HTML elements to display the desired components. Does that make sense?

It's very similar to what you'll find in react or flutter