wildlyinaccurate / plait

A fast, minimal JavaScript framework for building isomorphic reactive web components.
https://plait.js.org/
29 stars 2 forks source link

Basic (naive) implementation of static bootstrapping #5

Closed wildlyinaccurate closed 8 years ago

wildlyinaccurate commented 8 years ago

This is a super-naïve first pass which won't be suitable for large components.

A more suitable solution would be:

  1. Convert appNode and staticNode to vdom nodes
  2. Diff the two vdom nodes
  3. Patch staticNode with the diff