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

Function ShipFallback

exercises/01.fetching/05.solution.use/index.tsx:67–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected