-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sk pja react router dom #25
Conversation
src/App.js
Outdated
@@ -1,25 +1,20 @@ | |||
import React from 'react'; | |||
import logo from './logo.svg'; | |||
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think react-router-dom
should be installed in this branch rather than having the reviewer install it. That might be why the checks are failing. Netlify doesn't know to install it unless it's already been added to the package.json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skillitzimberg Thanks! This was very helpful and I realized what I did wrong. The package.json
files are now updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you npm install react-router-dom
@SaraSweetie to install the library?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevelikesmusic Yes. That is how I installed the react-router-dom library.
Based on how I read the AC I thought that your PR had met the requirements. But I think that I'm not interpreting the last criterium the way it was intended.
It might be a good idea to check in with mentors to clear up any confusion around this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! There are a couple of minor clean up details. I left comments on/near the affected lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an unused border property in your class selector called 'selected'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Approved.
Description
Utilizing
react-router-dom
for managing the page views. This app currently has two page views: the default shopping list, and/add
to add an item to the shopping list. The currently selected page is indicated by a change in the button color and the browser's URL.Related Issue
closes #4
Acceptance Criteria
react-router-dom
has been added as a project dependencyType of Changes
Updates
Before
Starter UI from create-react-app. This code was removed.
After
/
, and Add Item/add
Testing Steps / QA Criteria
git pull origin sk-pja-react-router-dom
andgit checkout sk-pja-react-router-dom
to switch to the branch.npm install
to add the dependencies, thennpm start
to run the app./add
in the URL.