Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m2ym/2f4939bb30b972447840 to your computer and use it in GitHub Desktop.
Save m2ym/2f4939bb30b972447840 to your computer and use it in GitHub Desktop.
ゆるふわ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