mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
react-is: fix lazy and memo tests
This commit is contained in:
@@ -86,12 +86,12 @@ ReactIs.isForwardRef(<ForwardRefComponent />); // true
|
||||
ReactIs.typeOf(<ForwardRefComponent />) === ReactIs.ForwardRef; // true
|
||||
|
||||
// Lazy
|
||||
ReactIs.isLazy(<LazyComponent />); // true
|
||||
ReactIs.typeOf(<LazyComponent />) === ReactIs.Lazy; // true
|
||||
ReactIs.isLazy(LazyComponent); // true
|
||||
ReactIs.typeOf(LazyComponent) === ReactIs.Lazy; // true
|
||||
|
||||
// Memo
|
||||
ReactIs.isMemo(<MemoComponent />); // true
|
||||
ReactIs.typeOf(<MemoComponent />) === ReactIs.Memo; // true
|
||||
ReactIs.isMemo(MemoComponent); // true
|
||||
ReactIs.typeOf(MemoComponent) === ReactIs.Memo; // true
|
||||
|
||||
// Suspense
|
||||
ReactIs.isForwardRef(<React.Suspense fallback={StatelessComponent} />); // true
|
||||
|
||||
Reference in New Issue
Block a user