Now index.js uses root instead of app component.
This commit is contained in:
@@ -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'));
|
||||
Reference in New Issue
Block a user