Skip to content

Instantly share code, notes, and snippets.

@nimish-gupta
Created June 29, 2019 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nimish-gupta/020259d3478fed4085d0fd31095b0be8 to your computer and use it in GitHub Desktop.
Save nimish-gupta/020259d3478fed4085d0fd31095b0be8 to your computer and use it in GitHub Desktop.
React render Lifecycle implemented using Reason React hooks
[@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