-
-
Save covelitein/5b2802e7166befcb0ed5751cf4ef5c1d to your computer and use it in GitHub Desktop.
dappworks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import ReactDOM from 'react-dom/client' | |
import { BrowserRouter } from 'react-router-dom' | |
import 'react-toastify/dist/ReactToastify.css' | |
import './index.css' | |
import App from './App' | |
import { initCometChat } from './services/chat' | |
const root = ReactDOM.createRoot(document.getElementById('root')) | |
initCometChat().then(()=> { | |
root.render( | |
<React.StrictMode> | |
<BrowserRouter> | |
<App /> | |
</BrowserRouter> | |
</React.StrictMode> | |
) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment