Skip to content

Instantly share code, notes, and snippets.

@IwanKaramazow
Created June 18, 2016 19:02
Show Gist options
  • Save IwanKaramazow/0d0a6c0d355194ac65fe46d30924af9c to your computer and use it in GitHub Desktop.
Save IwanKaramazow/0d0a6c0d355194ac65fe46d30924af9c to your computer and use it in GitHub Desktop.
Js_of_ocaml
let module Title = React.CreateComponent {
type props = string;
/* this part is a lot of boilerplate */
type underlyingJsValue = Js.t Js.js_string;
let to_js props => Js.string props;
let from_js js_props => Js.to_string js_props;
/* end of boilerplate */
let render props => H1.make [Text props];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment