Skip to content

Instantly share code, notes, and snippets.

@yordanzhelevdev
Created June 23, 2018 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yordanzhelevdev/b3879ef6d500ebcd0dab809d693f3a74 to your computer and use it in GitHub Desktop.
Save yordanzhelevdev/b3879ef6d500ebcd0dab809d693f3a74 to your computer and use it in GitHub Desktop.
/ renderEditRecipe(key) {
// const recipe = this.props.recipes[key];
// return (
// <div className="modal">
// <form
// name="recipeForm"
// ref={input => (this.recipeForm = input)}
// >
// <div className="inputsContainer">
// <div className="recipeInputs">
// <label>Recipe Name</label>
// <input
// value={recipe.recipeName}
// name="recipeName"
// type="text"
// ref={input => (this.recipeName = input)}
// />
// <label>Recipe Photo</label>
// <input
// value={recipe.dishImg}
// type="text"
// name="dishImg"
// ref={input => (this.dishImg = input)}
// />
// <label>Ingredients</label>
// <textarea
// value={recipe.ingredients}
// name="ingredients"
// placeholder="Put each ingredient on its own line"
// ref={input => (this.ingredients = input)}
// />
// <label>Directions</label>
// <textarea
// value={recipe.directions}
// name="directions"
// placeholder="Put each step on its own line"
// ref={input => (this.directions = input)}
// />
// </div>
// </div>
// <div className="formBtns">
// <input type="submit" value="Save" />
// <input type="reset" value="Clear" />
// </div>
// </form>
// </div>
// )
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment