Add suppressContentEditableWarning to react

* react: add support for the new suppressContentEditableWarning flag
https://github.com/facebook/react/pull/6112
This commit is contained in:
Gaspard Bucher
2017-03-02 11:48:06 +01:00
parent 14cfa9f41c
commit 5a3f029dc4
2 changed files with 11 additions and 0 deletions

1
react/index.d.ts vendored
View File

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

View File

@@ -33,3 +33,13 @@ StatelessComponent2.defaultProps = {
<div slot="Some Div"> Hello again! </div>
</g>
</svg>;
// React-specific Attributes
<div
defaultChecked
defaultValue="some value"
contentEditable
suppressContentEditableWarning
>
<b>foo</b>
</div>