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

Function ShipFallback

exercises/01.fetching/04.problem.util/index.tsx:103–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103function ShipFallback() {
104 return (
105 <div className="ship-info">
106 <div className="ship-info__img-wrapper">
107 <img src="/img/fallback-ship.png" alt={shipName} />
108 </div>
109 <section>
110 <h2>
111 {shipName}
112 <sup>
113 XX <small>lyh</small>
114 </sup>
115 </h2>
116 </section>
117 <section>
118 <ul>
119 {Array.from({ length: 3 }).map((_, i) => (
120 <li key={i}>
121 <label>loading</label>:{' '}
122 <span>
123 XX <small>(loading)</small>
124 </span>
125 </li>
126 ))}
127 </ul>
128 </section>
129 </div>
130 )
131}
132
133function ShipError() {
134 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected