Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Ian's Recipe Keeper #134

wants to merge 3 commits into from

Conversation

ianshalom
Copy link

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?

@@ -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,

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">

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants