We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7948701 commit ca8eb87Copy full SHA for ca8eb87
src/index.d.ts
@@ -14,7 +14,11 @@ declare namespace preact {
14
type: ComponentType<P> | string;
15
props: P & { children: ComponentChildren };
16
key: Key;
17
- ref: Ref<any> | null;
+ /**
18
+ * ref is not guaranteed by React.ReactElement, for compatiblity reasons
19
+ * with popular react libs we define it as optional too
20
+ */
21
+ ref?: Ref<any> | null;
22
/**
23
* The time this `vnode` started rendering. Will only be set when
24
* the devtools are attached.
0 commit comments