From ed2b5eb45ccd0ceefd9d5babb51ce0534f472938 Mon Sep 17 00:00:00 2001 From: Susie Lu Date: Wed, 29 Mar 2017 15:50:24 -0700 Subject: [PATCH 1/2] fix rendering issues --- package.json | 4 +++- src/docs/index.js | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0db667a..453066e 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,9 @@ "react-scripts": "0.8.5", "reactstrap": "^4.0.1" }, - "dependencies": {}, + "dependencies": { + "react-router-dom": "4.0.0" + }, "peerDependencies": { "reactstrap": "^4.0.0" }, diff --git a/src/docs/index.js b/src/docs/index.js index 7e7660a..61564df 100644 --- a/src/docs/index.js +++ b/src/docs/index.js @@ -1,5 +1,5 @@ import React from 'react'; -import { BrowserRouter, Match } from 'react-router'; +import { BrowserRouter, Route } from 'react-router-dom'; import LayoutNav from './layout/Nav'; import LayoutFooter from './layout/Footer'; import Home from './Home'; @@ -21,8 +21,8 @@ const Docs = () => {
{/* Begin Routes */} - } /> - + } /> + {/* End Routes */}
From 4cd007da7aeb45b1d0363346ac53d6d0fcf10150 Mon Sep 17 00:00:00 2001 From: Susie Lu Date: Wed, 29 Mar 2017 15:57:54 -0700 Subject: [PATCH 2/2] move react-router-dom to dev dependency --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 453066e..54c5f86 100644 --- a/package.json +++ b/package.json @@ -37,14 +37,12 @@ "react-addons-transition-group": "^15.3.2", "react-addons-css-transition-group": "^15.3.2", "react-dom": "^15.3.2", + "react-router-dom": "4.0.0", "react-prism": "^4.0.0", "react-router": "^4.0.0-alpha.6", "react-scripts": "0.8.5", "reactstrap": "^4.0.1" }, - "dependencies": { - "react-router-dom": "4.0.0" - }, "peerDependencies": { "reactstrap": "^4.0.0" },