import * as React from "react" ; import { render } from "react-dom" ; import { Global } from "@emotion/core" ; import debug from "debug" ; import { name , version } from "../../package.json" ; import { globalStyle } from "../shared/global-style" ; import App from "./app" ; const log = debug ( "main" ) ; ( async ( ) => { log ( `${ name } v${ version }` ) ; document . title += ` v${ version }` ; render ( < React . StrictMode > < Global styles = { globalStyle } / > < App /> < /React.StrictMode>, document.getElementById("app-root")); } ) ( ) . catch ( ( err ) => console . error ( err ) ) ;