Created
June 18, 2016 19:02
-
-
Save IwanKaramazow/0d0a6c0d355194ac65fe46d30924af9c to your computer and use it in GitHub Desktop.
Js_of_ocaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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