/**
* This code is included in the client for react demos
*/
const root = document.getElementById('root');
window.onerror = function() {
root.innerHTML = `
Unhandled error in the built app. Please check the browser console.
`.trim();
console.error(arguments);
}
import * as React from 'react';
import * as ReactDOM from 'react-dom';
function render(content: React.DOMElement) {
ReactDOM.render(content, root);
}
(window as any).render = render;