LibreChat/index.js

11 lines
402 B
JavaScript
Raw Normal View History

import React from 'react';
2023-02-04 20:07:08 -05:00
// import reactDom from 'react-dom'; ---> deprecated
import { createRoot } from 'react-dom/client';
import App from './src/App';
2023-02-04 18:17:47 -05:00
import './src/style.css';
2023-02-04 20:07:08 -05:00
const container = document.getElementById('root');
const root = createRoot(container); // createRoot(container!) if you use TypeScript
// reactDom.render(<App />, document.getElementById('root'));
root.render(<App />);