reason icon indicating copy to clipboard operation
reason copied to clipboard

Confusing documentation for JavaScript Interop

Open louy2 opened this issue 5 years ago • 0 comments

In page Interop · Reason, under section Settling down and getting disciplined about things, the code shows:

[@bs.send] external getContext : (canvas, string) => context = "getContext";

But the documentation below says:

Then we made a getContext function, but instead of @bs.val we used @bs.send, and we used an empty string for the text of the external. [emphasis mine]

louy2 avatar May 31 '20 04:05 louy2