I am working on the edit button, and I think I am headed in the right direction…hopefully. So I get the recipe with the index when I click on the recipe name in the list. So im thinking just assigning the user input values to the selected recipes name, directions, and ingredients. which replaces all 3 of those filed with the user input, but does not change the name in the list. Which im guessing is because the recipes is never updated, so I guess I am going the wrong way. any help with that would be appreciated.
Second I have two modals in the code. One for adding a recipe, and one for editing the recipe. Both buttons are calling the handleshow method which may be the problem? So if either button is pressed only the edit modal comes up