Created
June 29, 2019 17:06
-
-
Save nimish-gupta/020259d3478fed4085d0fd31095b0be8 to your computer and use it in GitHub Desktop.
React render Lifecycle implemented using Reason React hooks
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
[@react.component] | |
let make = (~name) => { | |
// the whole body of this method comes under render lifecycle. | |
name -> React.string; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment