rgncycle-ui/app/index.jsx

20 lines
432 B
React
Raw Permalink Normal View History

2023-04-21 13:46:00 +02:00
import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
2023-04-21 14:44:43 +02:00
2023-04-21 13:46:00 +02:00
//TODO remove debugging
if (process.env.NODE_ENV !== 'production') {
console.log('development mode');
}
2023-04-21 14:44:43 +02:00
2023-04-21 13:46:00 +02:00
//since react 18
import { createRoot } from 'react-dom/client';
//create root container
const root = createRoot(document.getElementById("root"));
//render root app
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);