Created
June 4, 2018 17:02
-
-
Save SaraVieira/a253e87a2a7ed65dcc48ae428029e623 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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