UNPKG

rescript-relay

Version:
24 lines (19 loc) 743 B
// Generated by ReScript, PLEASE EDIT WITH CARE 'use strict'; var ReactDOM = require("@rescript/react/src/ReactDOM.bs.js"); var Client = require("react-dom/client"); function renderConcurrentRootAtElementWithId(content, id) { var element = document.getElementById(id); if (element == null) { throw { RE_EXN_ID: "Invalid_argument", _1: "ReactExperimental.renderConcurrentRootAtElementWithId : no element of id " + id + " found in the HTML.", Error: new Error() }; } Client.createRoot(element).render(content); } var Root = ReactDOM.Client.Root; exports.Root = Root; exports.renderConcurrentRootAtElementWithId = renderConcurrentRootAtElementWithId; /* react-dom/client Not a pure module */