Sfoglia il codice sorgente

Move links out of Suspense

Andrew Swistak 6 anni fa
parent
commit
699b775520
1 ha cambiato i file con 6 aggiunte e 7 eliminazioni
  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>
   );