aboutsummaryrefslogtreecommitdiffstats
path: root/src/App.tsx
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-06 00:29:04 +0100
committerGravatar GitHub <[email protected]>2020-10-06 00:29:04 +0100
commit63517197fa6fb252207531e7e158ee9acfe3fd0e (patch)
tree17aabfa64aa298bba6a0182802fa9f7f80761056 /src/App.tsx
parentMerge pull request #17 from python-discord/branding/update-favicons (diff)
parentAdd a key to the form listings (diff)
Merge pull request #18 from python-discord/react/add-list-key
Add keys to sections of the app where arrays are iterated
Diffstat (limited to 'src/App.tsx')
-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>