From 6b7113426751a466bcb9e34843f61a7c167f73cf Mon Sep 17 00:00:00 2001 From: Melissa Kemp Date: Mon, 16 Sep 2019 13:17:05 -0600 Subject: [PATCH 1/5] finished step 1 on index.js --- package.json | 12 ++++++++++++ src/index.js | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f6a74772d..fbc747541 100644 --- a/package.json +++ b/package.json @@ -15,5 +15,17 @@ "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] } } diff --git a/src/index.js b/src/index.js index a682d5a8a..3a1fd33cd 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,12 @@ import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; +import { BrowserRouter as Router} from "react-router-dom" import App from './App'; import 'bootstrap/dist/css/bootstrap.css'; -ReactDOM.render(, document.getElementById('root')); +ReactDOM.render( + + +, +document.getElementById('root')); From ca19fcb861d289246414228ccd59db1e6009395c Mon Sep 17 00:00:00 2001 From: Melissa Kemp Date: Mon, 16 Sep 2019 14:00:42 -0600 Subject: [PATCH 2/5] Routed paths in App.js --- public/index.html | 2 +- src/App.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 7bee02710..b0af97486 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + React Router Basic Nav