Skip to content

Instantly share code, notes, and snippets.

ゆるふわJavaScriptプログラミング in OCaml
open Easyjs
let () = begin%js
let foobar = {| jQuery("#foobar") |} in
let value = of_string "Hello, World!" in
let callback _ = {| ${foobar}.text(${value}) |} in
ignore {| window.setTimeout(${fn callback}, 1000) |}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment