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

Function ShipError

exercises/02.dynamic/03.solution.flash/index.tsx:133–145  ·  view source on GitHub ↗
({ shipName }: { shipName: string })

Source from the content-addressed store, hash-verified

131}
132
133function ShipError({ shipName }: { shipName: string }) {
134 return (
135 <div className="ship-info">
136 <div className="ship-info__img-wrapper">
137 <img src="/img/broken-ship.webp" alt="broken ship" />
138 </div>
139 <section>
140 <h2>There was an error</h2>
141 </section>
142 <section>There was an error loading "{shipName}"</section>
143 </div>
144 )
145}
146
147const rootEl = document.createElement('div')
148document.body.append(rootEl)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected