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

Function ShipFallback

exercises/01.fetching/01.problem.throw/index.tsx:71–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71function ShipFallback() {
72 return (
73 <div className="ship-info">
74 <div className="ship-info__img-wrapper">
75 <img src="/img/fallback-ship.png" alt={shipName} />
76 </div>
77 <section>
78 <h2>
79 {shipName}
80 <sup>
81 XX <small>lyh</small>
82 </sup>
83 </h2>
84 </section>
85 <section>
86 <ul>
87 {Array.from({ length: 3 }).map((_, i) => (
88 <li key={i}>
89 <label>loading</label>:{' '}
90 <span>
91 XX <small>(loading)</small>
92 </span>
93 </li>
94 ))}
95 </ul>
96 </section>
97 </div>
98 )
99}
100
101const rootEl = document.createElement('div')
102document.body.append(rootEl)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected