Created
October 1, 2017 14:47
-
-
Save koba04/ffa7e6c818ae0ac7dbaad7c01bafb6f0 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 ReactDOM from 'react-dom'; | |
import App from './App'; | |
const initialData = JSON.parse(document.getElementById('initial-data').getAttribute('data-json')); | |
ReactDOM.hydrate(<App {...initialData} />, document.getElementById('app')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment