Quellcode durchsuchen

Move links out of Suspense

Andrew Swistak vor 6 Jahren
Ursprung
Commit
699b775520
1 geänderte Dateien mit 6 neuen und 7 gelöschten Zeilen
  1. 6 7
      app/javascript/packs/frontend/app.tsx

+ 6 - 7
app/javascript/packs/frontend/app.tsx

@@ -24,13 +24,12 @@ function App(): React.ReactElement {
             <Route component={NotFound} />
           </Switch>
 
-          <p>
-            <Link to='/pokemon'>Show me the pokemon!</Link>
-          </p>
-          <p>
-            <Link to='/relay'>Take me to relay</Link>
-          </p>
-        </Suspense>
+        <p>
+          <Link to='/pokemon'>Show me the pokemon!</Link>
+        </p>
+        <p>
+          <Link to='/relay'>Take me to relay</Link>
+        </p>
       </ApplicationLayout>
     </BrowserRouter>
   );