mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 12:33:17 +08:00
[react] Add supressHydrationWarning to React.HTMLAttributes interface
Added in 16.1.0 (https://github.com/facebook/react/releases/tag/v16.1.0) Docs: https://reactjs.org/docs/dom-elements.html#suppresshydrationwarning
This commit is contained in:
1
types/react/index.d.ts
vendored
1
types/react/index.d.ts
vendored
@@ -2450,6 +2450,7 @@ declare namespace React {
|
||||
defaultChecked?: boolean;
|
||||
defaultValue?: string | string[];
|
||||
suppressContentEditableWarning?: boolean;
|
||||
suppressHydrationWarning?: boolean;
|
||||
|
||||
// Standard HTML Attributes
|
||||
accessKey?: string;
|
||||
|
||||
@@ -37,6 +37,7 @@ StatelessComponent2.defaultProps = {
|
||||
defaultValue="some value"
|
||||
contentEditable
|
||||
suppressContentEditableWarning
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<b>foo</b>
|
||||
</div>;
|
||||
|
||||
Reference in New Issue
Block a user