Warning: Reason support is experimental. We are looking for beta-tester and contributors.

How to build js object?

Use syntax new%js:

Example:

let get_timestamp () =
  let date = new%js Js.date_now in
  int_of_float (Js.to_float (date##getTime))

More details in documentation: Js object constructor