You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/components/Playground/editor-types/react.d.ts
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ declare namespace React {
132
132
typeJSXElementConstructor<P>=
133
133
|((
134
134
props: P,
135
-
)=>ReactNode)
135
+
)=>ReactNode|Promise<ReactNode>)
136
136
// constructor signature must match React.Component
137
137
|(new(props: P)=>Component<any,any>);
138
138
@@ -1036,7 +1036,7 @@ declare namespace React {
1036
1036
* ```
1037
1037
*/
1038
1038
interfaceFunctionComponent<P={}>{
1039
-
(props: P): ReactNode;
1039
+
(props: P): ReactNode|Promise<ReactNode>;
1040
1040
/**
1041
1041
* Ignored by React.
1042
1042
* @deprecated Only kept in types for backwards compatibility. Will be removed in a future major release.
@@ -1835,10 +1835,11 @@ declare namespace React {
1835
1835
* A good example of this is a text input.
1836
1836
*
1837
1837
* @param value The value that is going to be deferred
1838
+
* @param initialValue A value to use during the initial render of a component. If this option is omitted, `useDeferredValue` will not defer during the initial render, because there’s no previous version of `value` that it can render instead.
0 commit comments