0.3.0 • Published 7 years ago
reason-js v0.3.0
Reason bindings to JavaScript, through BuckleScript
What Does This Even Mean?
Reason is a syntax on top of OCaml, a great language. BuckleScript compiles OCaml to clean JavaScript. This library provides common JavaScript functions, e.g. console
and setInterval
, through Reason (all type checked!); See the usage below!
npm install reason-js
Usage
/* Looks almost identical to JavaScript, but fully typed! */
let myInterval = ReasonJs.setInterval (fun () => Js.log "hello!") 1000;