Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bdiaz12 authored May 23, 2024
1 parent d5ac59a commit a4733fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ This project makes use of 4 React components to:
-RecipeCreate creates a form on screen for users to type in new recipes and submit them to the page to be displayed
-stores its own state for form inputs
-uses createRecipe() as props to handle when user submits the form
2.Format new recipes -
2. Format new recipes -
-RecipeFormat handles the input of a single recipe, and returns it formatted as a <tr> element with nested <td> elements for each key-value of the recipe.
-Adds a delete button to the recipe, using handleDelete() when button is clicked.
3.List all available recipes -
3. List all available recipes -
-RecipeList renders full table display for all current recipes, using RecipeFormat to map the list of recipes to <tbody> element.
4.App component -
4. App component -
-stores state for recipes, so all children have access if needed through props
-holds handleDelete() and createRecipe() methods to manage state of recipes, methods are passed to children as props
-returns <div> element with a header, our RecipeList table display, and the RecipeCreate form

0 comments on commit a4733fb

Please sign in to comment.