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

Function Img

exercises/06.optimization/02.problem.cache/index.tsx:220–223  ·  view source on GitHub ↗
({ src = '', ...props }: React.ComponentProps<'img'>)

Source from the content-addressed store, hash-verified

218}
219
220function Img({ src = '', ...props }: React.ComponentProps<'img'>) {
221 src = use(imgSrc(src))
222 return <img src={src} {...props} />
223}
224
225const rootEl = document.createElement('div')
226document.body.append(rootEl)

Callers

nothing calls this directly

Calls 2

imgSrcFunction · 0.90
useFunction · 0.50

Tested by

no test coverage detected