Skip to content

Instantly share code, notes, and snippets.

@mattvagni
Created July 1, 2020 15:03
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 mattvagni/b73968640dd0ad138cac9a8d6ac5f0e1 to your computer and use it in GitHub Desktop.
Save mattvagni/b73968640dd0ad138cac9a8d6ac5f0e1 to your computer and use it in GitHub Desktop.
import React from "react";
import Recipe from "./recipe";
export default function recipeTemplate(props) {
console.log(props)
return (
<section>
<Recipe
title={props.pageContext.recipe.title}
ingredientArray={props.pageContext.recipe.ingredients}
instructionArray={props.pageContext.recipe.instructions}
note={props.pageContext.recipe.note}
/>
</section>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment