mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
10 lines
402 B
JavaScript
10 lines
402 B
JavaScript
import React from 'react';
|
|
// import reactDom from 'react-dom'; ---> deprecated
|
|
import { createRoot } from 'react-dom/client';
|
|
import App from './src/App';
|
|
import './src/style.css';
|
|
|
|
const container = document.getElementById('root');
|
|
const root = createRoot(container); // createRoot(container!) if you use TypeScript
|
|
// reactDom.render(<App />, document.getElementById('root'));
|
|
root.render(<App />);
|