I was hoping to get more done today, but the joy of having UC is that I am feeling like pure crap (pun intended). Anyway I have been thinking about this today, but again being sick with a flare up…there really is no getting anything done…
Let me start off by saying I am not looking for a full solution! I have not really had much experience with arrays, and objects when I took classes in college. So if I just keep getting code then I wont really learn for myself. Anyway I have it so the recipe shows when you click on it, and a modal comes up for the recipe to be edited (I havent finished the inside of the modal). So I want to make sure that I am editing the right recipe.
train of thought: my thought right now is maybe it looks something like my handleRecipe method? Where I have a map or loop that goes through the array, and looks for that recipe that was selected?
Which brings me to my second question. in the modal I want the selected recipes info to show up in the input that way if they are editing they do not have to re type everything. I assume that I set that recipes ingredients, directions, and name as the values of the input, and handlechange will allow for editing. Which would be the same thing I have to find that recipe that was selected
here is the pen I am working with