Skip to content

Instantly share code, notes, and snippets.

@sgrove

sgrove/error Secret

Created July 25, 2016 05:48
Show Gist options
  • Save sgrove/879732ed7b007a252778ad9fd1826e07 to your computer and use it in GitHub Desktop.
Save sgrove/879732ed7b007a252778ad9fd1826e07 to your computer and use it in GitHub Desktop.
Error: This expression should not be a function, the expected type is
Js.js_string Js.t
Elem (DOM.make ~tag:`input ~elem_spec:
([("type", Js.string "checkbox");
("onClick", (fun _ -> swap initial_state (fun state -> set_tab !state All)));
("checked", Js.string (if task.completed then "checked" else ""));
("className", Js.string "toggle")]
>>> object%js end)
[])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment