import { Suspense } from 'react' ; import { render } from 'react-dom' ; import { HashRouter } from 'react-router-dom' ; import { Loading } from '@components' ; import App from '@containers/App' ; import 'virtual:windi.css' ; export default function renderApp ( ) { const rootEl = document . getElementById ( 'root' ) ; const AppInstance = ( < HashRouter > < Suspense fallback = { < Loading visible />}> < App / > < /Suspense> < /HashRouter>); render ( AppInstance , rootEl ) ; }