Now index.js uses root instead of app component.
This commit is contained in:
		| @@ -2,7 +2,7 @@ | |||||||
| * @Author: KevinMidboe | * @Author: KevinMidboe | ||||||
| * @Date:   2017-06-01 21:08:55 | * @Date:   2017-06-01 21:08:55 | ||||||
| * @Last Modified by:   KevinMidboe | * @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 |     ./client/index.js | ||||||
|     which is the webpack entry file |     which is the webpack entry file | ||||||
| @@ -11,10 +11,10 @@ | |||||||
| import React from 'react'; | import React from 'react'; | ||||||
| import { render } from 'react-dom'; | import { render } from 'react-dom'; | ||||||
| import { HashRouter } from 'react-router-dom'; | import { HashRouter } from 'react-router-dom'; | ||||||
| import App from './components/App.jsx'; | import Root from './Root.jsx'; | ||||||
|  |  | ||||||
| render(( | render(( | ||||||
| 	<HashRouter> | 	<HashRouter> | ||||||
| 		<App /> | 		<Root /> | ||||||
| 	</HashRouter> | 	</HashRouter> | ||||||
| ), document.getElementById('root')); | ), document.getElementById('root')); | ||||||
		Reference in New Issue
	
	Block a user