Skip to content

Commit 79545bf

Browse files
committed
fix: use ReactDOM.hydrate
1 parent 4a6379e commit 79545bf

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

client/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ import App from 'containers/App';
1010

1111
const history = createHistory();
1212

13-
/* Images
14-
* This space is reserved for images that are required by server rendering,
15-
* e.g. the favicon and any other images that need to be in the base HTML file.
16-
*/
17-
import '../common/images/favicon.png';
18-
1913
// The root element of your app
2014
const rootElement = document.getElementById('app');
2115

@@ -25,7 +19,7 @@ const initialState = window.__INITIAL_STATE__;
2519
const store = configureStore(initialState, history);
2620

2721
const render = (Component) => {
28-
ReactDOM.render(
22+
ReactDOM.hydrate(
2923
<Provider store={store}>
3024
<AppContainer>
3125
<ConnectedRouter history={history}>

0 commit comments

Comments
 (0)