[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:
Oblosys
2018-03-15 11:50:12 +01:00
parent 17c3e0a996
commit e6406805ec
2 changed files with 2 additions and 0 deletions

View File

@@ -2450,6 +2450,7 @@ declare namespace React {
defaultChecked?: boolean;
defaultValue?: string | string[];
suppressContentEditableWarning?: boolean;
suppressHydrationWarning?: boolean;
// Standard HTML Attributes
accessKey?: string;

View File

@@ -37,6 +37,7 @@ StatelessComponent2.defaultProps = {
defaultValue="some value"
contentEditable
suppressContentEditableWarning
suppressHydrationWarning
>
<b>foo</b>
</div>;