MCPcopy Create free account
hub / github.com/epicweb-dev/react-suspense / App

Function App

exercises/01.fetching/02.problem.errors/index.tsx:11–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const shipName = 'Dreadnought'
10
11function App() {
12 return (
13 <div className="app-wrapper">
14 <div className="app">
15 <div className="details">
16 {/* 🐨 wrap this in an ErrorBoundary */}
17 {/* 💰 you can use the ShipError component below as the fallback prop */}
18 <Suspense fallback={<ShipFallback />}>
19 <ShipDetails />
20 </Suspense>
21 </div>
22 </div>
23 </div>
24 )
25}
26
27let ship: Ship
28// 🐨 create an error variable here

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected