concept reactivity in category svelte

appears as: reactivity
Svelte and Sapper in Action

This is an excerpt from Manning's book Svelte and Sapper in Action.

Svelte provides reactivity without using a virtual DOM

Some web frameworks, including React and Vue, use a virtual Document Object Model (DOM) to optimize updating the real DOM in response to data changes. When component state changes, the framework builds a new version of the DOM in memory and then compares it to the previous version. Only the differences are applied to the real DOM. Although this is faster than updating everything in the real DOM, it does take time to build a virtual DOM and compare it to the previous one.