package virtual_dom
OCaml bindings for the virtual-dom library
Install
Dune Dependency
Authors
Maintainers
Sources
virtual_dom-v0.11.0.tar.gz
sha256=fcca8df9332f4e78276c4f6f4ed07002fbf0ee38e46d434eb814f758b61605ba
md5=2a4a40f7fb15cce03be9c52c9874bd70
README.org.html
README.org
#+TITLE: ~Virtual_dom~: a virtual DOM diffing library #+PARENT: ../../doc/webdev/index.org This library is an OCaml wrapper of Matt Esch's [[https://github.com/Matt-Esch/virtual-dom][virtual-dom library]]. It provides a simple, immutable representation of a desired state of the DOM, as well as primitives for updating the real DOM in the browser to match that, both by slamming the entire DOM in place, and by computing diffs between successive virtual-DOMs, and applying the resulting patch to the real DOM.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>