From bd74e1dee11bc63e278a799d6a2d3b65529d8967 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Fri, 6 Oct 2017 12:03:16 +0200 Subject: [PATCH] The first thing the index does is to load the app file in a hashrouter object and send it to the element with id root. --- client/app/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client/app/index.js b/client/app/index.js index ecc68f9..214f861 100644 --- a/client/app/index.js +++ b/client/app/index.js @@ -2,14 +2,19 @@ * @Author: KevinMidboe * @Date: 2017-06-01 21:08:55 * @Last Modified by: KevinMidboe -* @Last Modified time: 2017-06-01 21:34:32 +* @Last Modified time: 2017-10-05 13:47:37 ./client/index.js which is the webpack entry file */ import React from 'react'; -import ReactDOM from 'react-dom'; +import { render } from 'react-dom'; +import { HashRouter } from 'react-router-dom'; import App from './components/App.jsx'; -ReactDOM.render(, document.getElementById('root')); \ No newline at end of file +render(( + + + +), document.getElementById('root')); \ No newline at end of file