Created
July 5, 2018 07:17
-
-
Save rusty-key/f0412e79006c36a9c8ceda22e7495b6a to your computer and use it in GitHub Desktop.
Reason HMR
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
[@bs.val] [@bs.scope ("module")] | |
external isHotEnabled : bool = "hot"; | |
[@bs.val] [@bs.scope ("module", "hot")] external hotAccept : unit => unit = "accept"; | |
ReactDOMRe.renderToElementWithId(<App />, "root"); | |
if (isHotEnabled) { | |
hotAccept(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment