Explorar el Código

Move links out of Suspense

Andrew Swistak hace 6 años
padre
commit
699b775520
Se han modificado 1 ficheros con 6 adiciones y 7 borrados
  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>
   );