Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.33 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.33 KB

solidtype

SolidJS for modern OCaml. Fast, accessible and reactivity-safe. Kobalte and HeroUI included.

ci release license OCaml 5.5+ Hypha Stack

Documentation: hyphatech.github.io/solidtype

Quickstart

opam repo add hypha https://github.com/hyphatech/opam-repository.git
opam install solidtype
module 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.

Licence

MIT, copyright Hypha Technologies Ltd. See LICENSE.