From 4f550b4c4a6c1273eda52e296194df6c29f2f3b3 Mon Sep 17 00:00:00 2001 From: Erik Ostrom Date: Mon, 27 May 2019 14:05:06 -0500 Subject: [PATCH] Reach Router: Set id from props. Without this the code errors out. --- lessons/reach-router.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lessons/reach-router.md b/lessons/reach-router.md index 3d1c5415..1d8130bd 100644 --- a/lessons/reach-router.md +++ b/lessons/reach-router.md @@ -143,6 +143,9 @@ So now let's make the two pages link to each other. Go to Pet.js. // at top import { Link } from "@reach/router"; +// set id from props +const { name, animal, breed, media, location, id } = this.props; + // change wrapping div […]