Skip to content

Instantly share code, notes, and snippets.

@smoralb
Created January 11, 2022 22:00
Show Gist options
  • Save smoralb/8611f34cf9a4bf3da84cf267b57c873a to your computer and use it in GitHub Desktop.
Save smoralb/8611f34cf9a4bf3da84cf267b57c873a to your computer and use it in GitHub Desktop.
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import reportWebVitals from './reportWebVitals'
import i18n from './i18n'
import { I18nextProvider } from 'react-i18next'
import React, { Suspense } from 'react'
ReactDOM.render(
<React.StrictMode>
<I18nextProvider i18n={i18n}>
<Suspense fallback='loading'>
<App />
</Suspense>
</I18nextProvider>
</React.StrictMode>,
document.querySelector('#root')
)
reportWebVitals()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment