Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Reason HMR
[@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