There was an error while loading. Please reload this page.
2 parents dfbdbfc + b7ffa72 commit 82026beCopy full SHA for 82026be
1 file changed
docs/effects/custom-effects.mdx
@@ -42,8 +42,8 @@ class MyCustomEffectImpl extends Effect {
42
}
43
44
// Effect component
45
-export const MyCustomEffect = forwardRef(({ param }, ref) => {
+export const MyCustomEffect = ({ ref, param }) => {
46
const effect = useMemo(() => new MyCustomEffectImpl(param), [param])
47
return <primitive ref={ref} object={effect} dispose={null} />
48
-})
+}
49
```
0 commit comments