Skip to content

Instantly share code, notes, and snippets.

@Daltonic
Created March 19, 2023 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daltonic/9d414eae297a6ef74816dceb142ce78a to your computer and use it in GitHub Desktop.
Save Daltonic/9d414eae297a6ef74816dceb142ce78a to your computer and use it in GitHub Desktop.
DappBnb Project the index file
import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import App from './App'
import "swiper/css";
import "swiper/css/pagination";
import "swiper/css/navigation";
import 'react-datepicker/dist/react-datepicker.css'
import './index.css'
import { initCometChat } from './services/Chat'
initCometChat().then(() => {
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root')
)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment