Skip to content

Commit 5320502

Browse files
committed
Image example: Remove unnecessary onLoad logging
1 parent f9f62e1 commit 5320502

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

examples/src/ImageExamples/index.jsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ const dataWithAlpha = {
3737
};
3838

3939
export default function ImageExamples() {
40-
const ref = useRef(null);
41-
const [log, setLog] = useState([]);
42-
4340
return (
4441
<>
4542
<div
@@ -48,16 +45,8 @@ export default function ImageExamples() {
4845
>
4946
<Image
5047
data={data}
51-
ref={ref}
52-
onLoad={() =>
53-
setLog((log) => [
54-
...log,
55-
`Triggered onLoad() for element ${ref.current}`,
56-
])
57-
}
5848
/>
5949
</div>
60-
<pre>{log.join('\n')}</pre>
6150

6251
<div className="example" data-title="Image with transparency">
6352
<Image data={dataWithAlpha} />

0 commit comments

Comments
 (0)