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

Function ShipError

exercises/01.fetching/02.problem.errors/index.tsx:106–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105// 🧝‍♂️ here you go!
106function ShipError() {
107 return (
108 <div className="ship-info">
109 <div className="ship-info__img-wrapper">
110 <img src="/img/broken-ship.webp" alt="broken ship" />
111 </div>
112 <section>
113 <h2>There was an error</h2>
114 </section>
115 <section>There was an error loading "{shipName}"</section>
116 </div>
117 )
118}
119
120const rootEl = document.createElement('div')
121document.body.append(rootEl)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected