diff --git a/packages/react-dom-bindings/src/client/validateDOMNesting.js b/packages/react-dom-bindings/src/client/validateDOMNesting.js index 49d8b5c158f62..d6fdc5e857ed3 100644 --- a/packages/react-dom-bindings/src/client/validateDOMNesting.js +++ b/packages/react-dom-bindings/src/client/validateDOMNesting.js @@ -297,6 +297,8 @@ function isTagValidWithParent(tag: string, parentTag: ?string): boolean { tag === 'hr' || tag === 'option' || tag === 'optgroup' || + tag === 'script' || + tag === 'template' || tag === '#text' ); case 'optgroup':