We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 672e859 commit 1664b08Copy full SHA for 1664b08
packages/react-dom/src/client/setInnerHTML.js
@@ -3,6 +3,8 @@
3
*
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
*/
9
10
import {Namespaces} from '../shared/DOMNamespaces';
@@ -18,7 +20,10 @@ let reusableSVGContainer;
18
20
* @param {string} html
19
21
* @internal
22
-const setInnerHTML = createMicrosoftUnsafeLocalFunction(function(node, html) {
23
+const setInnerHTML = createMicrosoftUnsafeLocalFunction(function(
24
+ node: Element,
25
+ html: string,
26
+): void {
27
// IE does not have innerHTML for SVG nodes, so instead we inject the
28
// new markup in a temp node and then move the child nodes across into
29
// the target node
0 commit comments