From 8cb797ccc82bde4208bfba61ec1c1f17ef3192f5 Mon Sep 17 00:00:00 2001
From: Joe Banks <joseph@josephbanks.me>
Date: Mon, 5 Oct 2020 17:58:30 +0100
Subject: Add a key to the dynamic router

---
 src/App.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/App.tsx')

diff --git a/src/App.tsx b/src/App.tsx
index 9dd8b49..3af6676 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -34,7 +34,7 @@ function App() {
             >
               <Switch location={location}>
                 {routes.map(({path, Component}) => (
-                  <Route exact path={path} component={Component}/>
+                  <Route key={path} exact path={path} component={Component}/>
                 ))}
               </Switch>
             </CSSTransition>
-- 
cgit v1.2.3

