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

Function ShipError

exercises/02.dynamic/01.solution.cache/index.tsx:126–138  ·  view source on GitHub ↗
({ shipName }: { shipName: string })

Source from the content-addressed store, hash-verified

124}
125
126function ShipError({ shipName }: { shipName: string }) {
127 return (
128 <div className="ship-info">
129 <div className="ship-info__img-wrapper">
130 <img src="/img/broken-ship.webp" alt="broken ship" />
131 </div>
132 <section>
133 <h2>There was an error</h2>
134 </section>
135 <section>There was an error loading "{shipName}"</section>
136 </div>
137 )
138}
139
140const rootEl = document.createElement('div')
141document.body.append(rootEl)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected