SolidJS for modern OCaml. Fast, accessible and reactivity-safe. Kobalte and HeroUI included.
Documentation: hyphatech.github.io/solidtype
opam repo add hypha https://github.com/hyphatech/opam-repository.git
opam install solidtypemodule Jsx = Solidtype.Jsx
module Solid = Solidtype.Solid
let make () =
let count, set_count = Solid.create_signal 0 in
<button type_=`button on_click=(fun _ -> Solid.update set_count succ)>
"Clicked " (fun () -> Jsx.int (Solid.get count))
</button>Setting up dune and Vite to build it: Getting Started.
MIT, copyright Hypha Technologies Ltd. See LICENSE.