package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

bonsai-v0.14.0.tar.gz
sha256=43f35d648644492d776bf2c7b86c8227e7793615b6a658432e95f8dccd3631f8
md5=b5e743dbfa64d0da5fd660f14cd0b549

doc/bonsai.web/Bonsai_web/Start/App_result/index.html

Module Start.App_result

The result of an application-level component is a value of type 'incoming App_result.t. This value contains the view of the app, and also an inject function: a way for the holder of the Handle.t to send events into the application component.

If the application developer doesn't want to use incoming events, they should use Core_kernel.Nothing.t for the 'incoming type, and Core_kernel.Nothing.unreachable_code for the value of inject_incoming.

type ('extra, 'incoming) t
val create : view:Virtual_dom.Vdom.Node.t -> extra:'extra -> inject_incoming:('incoming -> Virtual_dom.Vdom.Event.t) -> ('extra, 'incoming) t
OCaml

Innovation. Community. Security.