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

Function ShipError

exercises/01.fetching/02.solution.errors/index.tsx:102–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102function ShipError() {
103 return (
104 <div className="ship-info">
105 <div className="ship-info__img-wrapper">
106 <img src="/img/broken-ship.webp" alt="broken ship" />
107 </div>
108 <section>
109 <h2>There was an error</h2>
110 </section>
111 <section>There was an error loading "{shipName}"</section>
112 </div>
113 )
114}
115
116const rootEl = document.createElement('div')
117document.body.append(rootEl)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected