-
Notifications
You must be signed in to change notification settings - Fork 134
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
Ian's Recipe Keeper #134
base: master
Are you sure you want to change the base?
Ian's Recipe Keeper #134
Conversation
@@ -65,7 +65,7 @@ app.get('/recipe/:id', (req, res) => { | |||
const index = parseInt(req.params.id); | |||
const recipe = obj.recipes; | |||
const data = { | |||
num: index, | |||
id: index, |
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.
Should you implement sort functionality for recipes eventually, consider creating an id property for each recipe object. Presently, an 'id' is only assigned to the props object for the purposes of rendering, and also at the routing stage, where the 'id' is correlated to the position of the recipe in its array. This correlation will be broken once any sorting logic is implemented, so a persistent id property may be helpful.
@@ -18,8 +18,7 @@ class Edit extends React.Component { | |||
<li class="nav-item"> | |||
<a class="nav-link active" href="/recipe">Home</a> | |||
</li> | |||
</ul> | |||
|
|||
</ul> | |||
<form method="POST" action={editRecipe}> | |||
<div class="form-group"> |
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.
Consider using className instead of class in jsx files
Deliverable Submission
Please describe your comfort and completeness levels before submitting.
Comfort Level (1-5):
3
Completeness Level (1-5):
3
How many hours did you spend on this assignment?
3
What part did you spend the most time on?
Does the assignment run without errors?
If the assignment has errors, what are they?
Describe one part of the code or choose one line you would improve upon.
What would you improve?
What did you think of this deliverable? Any other comments?