Last active
July 4, 2019 05:34
-
-
Save dangdennis/e1a37c54110a2752a4d99c8f32a99844 to your computer and use it in GitHub Desktop.
Defining ReasonReact components
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
/* FirstComponent.re */ | |
let component = ReasonReact.statelessComponent("RandomComponent"); | |
let make = (_children) => { | |
...component, | |
render: _self => | |
<div> {ReasonReact.string("Your first ReasonReact component")} </div>, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment