We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9f62e1 commit 5320502Copy full SHA for 5320502
1 file changed
examples/src/ImageExamples/index.jsx
@@ -37,9 +37,6 @@ const dataWithAlpha = {
37
};
38
39
export default function ImageExamples() {
40
- const ref = useRef(null);
41
- const [log, setLog] = useState([]);
42
-
43
return (
44
<>
45
<div
@@ -48,16 +45,8 @@ export default function ImageExamples() {
48
>
49
46
<Image
50
47
data={data}
51
- ref={ref}
52
- onLoad={() =>
53
- setLog((log) => [
54
- ...log,
55
- `Triggered onLoad() for element ${ref.current}`,
56
- ])
57
- }
58
/>
59
</div>
60
- <pre>{log.join('\n')}</pre>
61
62
<div className="example" data-title="Image with transparency">
63
<Image data={dataWithAlpha} />
0 commit comments