mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
chore(react): Add comment about createContext defaultValue (#39389)
This commit is contained in:
committed by
Wesley Wigham
parent
42718dc2ab
commit
07bf2ebb10
Vendored
+2
@@ -338,6 +338,8 @@ declare namespace React {
|
||||
displayName?: string;
|
||||
}
|
||||
function createContext<T>(
|
||||
// If you thought this should be optional, see
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/24509#issuecomment-382213106
|
||||
defaultValue: T,
|
||||
calculateChangedBits?: (prev: T, next: T) => number
|
||||
): Context<T>;
|
||||
|
||||
Reference in New Issue
Block a user