aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-05 17:58:30 +0100
committerGravatar Joe Banks <[email protected]>2020-10-05 17:58:30 +0100
commit8cb797ccc82bde4208bfba61ec1c1f17ef3192f5 (patch)
tree3ef7814075cf92654b35220c46c0876d5d84e369
parentMerge pull request #17 from python-discord/branding/update-favicons (diff)
Add a key to the dynamic router
-rw-r--r--src/App.tsx2
1 files changed, 1 insertions, 1 deletions
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>