Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Created June 4, 2018 17:02
Show Gist options
  • Save SaraVieira/a253e87a2a7ed65dcc48ae428029e623 to your computer and use it in GitHub Desktop.
Save SaraVieira/a253e87a2a7ed65dcc48ae428029e623 to your computer and use it in GitHub Desktop.
import React from 'react'
import { hydrate } from 'react-dom'
import { BrowserRouter as Router } from 'react-router-dom
import 'isomorphic-fetch'
import App from './App'
hydrate(
<Router>
<App />
</Router>,
document.getElementById('root')
)
if (module.hot) {
module.hot.accept()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment