Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
import { hydrate } from 'react-dom'
import { BrowserRouter as Router } from 'react-router-dom'
import { ensureReady, After } from '@jaredpalmer/after'
import './client.css'
import routes from './routes'
ensureReady(routes).then(data => {
console.log(data)
hydrate(
,
document.getElementById('root')
)
})
if (module.hot) {
module.hot.accept()
}