package virtual_dom

  1. Overview
  2. Docs
OCaml bindings for the virtual-dom library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=812711b4d5ce634a413580cd7096482de8d71abec9ae37bb01f7c0dcec2968ec

Description

The library itself may be found at https://github.com/Matt-Esch/virtual-dom.

Published: 26 May 2024

README

"Virtual_dom: a virtual DOM diffing library"

This library is an OCaml wrapper of Matt Esch's 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.

It has been vendored internally as the external library has gone unsupported for many years and we needed some modifications.

Contributing

Please exercise a high degree of caution if you modify this library. Our testing infrastructure doesn't support robust browser testing, so any changes here should be thoroughly smoke tested on a variety of apps with different usecases and potential DOM ~ab~uses. We intend this code to be as stable/unchanging as possible because of the difficult testing situation and near ubiquitous use in web apps at Jane Street.

Dependencies (15)

  1. uri >= "3.0.0"
  2. tyxml >= "4.3.0"
  3. lambdasoup >= "0.6.3"
  4. js_of_ocaml-ppx >= "5.1.1" & < "5.7.0"
  5. js_of_ocaml >= "5.1.1" & < "5.7.0"
  6. gen_js_api >= "1.0.8"
  7. dune >= "3.11.0"
  8. base64 >= "3.4.0"
  9. stdio >= "v0.17" & < "v0.18"
  10. ppx_jane >= "v0.17" & < "v0.18"
  11. js_of_ocaml_patches >= "v0.17" & < "v0.18"
  12. core_kernel >= "v0.17" & < "v0.18"
  13. core >= "v0.17" & < "v0.18"
  14. base >= "v0.17" & < "v0.18"
  15. ocaml >= "5.1.0"

Dev Dependencies

None

Conflicts

None

OCaml

Innovation. Community. Security.