Created
June 17, 2018 19:42
-
-
Save drenther/60871e8742838cea1935f2e5489e465b to your computer and use it in GitHub Desktop.
index.js for client of react-ssr
This file contains 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 } from 'react-router-dom'; | |
import App from '../shared/App'; | |
hydrate( | |
<BrowserRouter> | |
<App /> | |
</BrowserRouter>, | |
document.querySelector('#app') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment