瀏覽代碼

Move links out of Suspense

Andrew Swistak 6 年之前
父節點
當前提交
699b775520
共有 1 個文件被更改,包括 6 次插入7 次删除
  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>
   );