wisemapping-frontend/packages/webapp/src/index.tsx

17 lines
408 B
TypeScript
Raw Normal View History

2022-11-16 07:45:59 +01:00
// import './wdyr';
2022-11-13 03:42:52 +01:00
import React from 'react';
import App from './app';
import { createRoot } from 'react-dom/client';
2022-12-16 04:32:22 +01:00
declare global {
interface Window {
newrelic: { noticeError: (Error) => void };
}
}
2022-11-16 07:45:59 +01:00
const container = document.getElementById('root') as HTMLElement;
2023-01-14 17:40:25 +01:00
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2022-11-16 07:45:59 +01:00
const root = createRoot(container!);
root.render(<App />);