Now index.js uses root instead of app component.

This commit is contained in:
2017-10-21 00:10:51 +02:00
parent 65c1f7ad96
commit 2a09f67248

View File

@@ -2,7 +2,7 @@
* @Author: KevinMidboe
* @Date: 2017-06-01 21:08:55
* @Last Modified by: KevinMidboe
* @Last Modified time: 2017-10-05 13:47:37
* @Last Modified time: 2017-10-20 19:24:52
./client/index.js
which is the webpack entry file
@@ -11,10 +11,10 @@
import React from 'react';
import { render } from 'react-dom';
import { HashRouter } from 'react-router-dom';
import App from './components/App.jsx';
import Root from './Root.jsx';
render((
<HashRouter>
<App />
<Root />
</HashRouter>
), document.getElementById('root'));