Spaces:
Build error
Build error
Create index.tsx
Browse files
index.tsx
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* @license
|
| 3 |
+
* SPDX-License-Identifier: Apache-2.0
|
| 4 |
+
*/
|
| 5 |
+
/* tslint:disable */
|
| 6 |
+
import '@tailwindcss/browser';
|
| 7 |
+
import React from 'react';
|
| 8 |
+
import ReactDOM from 'react-dom/client';
|
| 9 |
+
import App from './App';
|
| 10 |
+
|
| 11 |
+
const rootElement = document.getElementById('root');
|
| 12 |
+
if (!rootElement) {
|
| 13 |
+
throw new Error('Could not find root element to mount to');
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
const root = ReactDOM.createRoot(rootElement);
|
| 17 |
+
root.render(
|
| 18 |
+
<React.StrictMode>
|
| 19 |
+
<App />
|
| 20 |
+
</React.StrictMode>,
|
| 21 |
+
);
|