diff --git a/packages/react-dom/src/server/ReactDOMServerFormatConfig.js b/packages/react-dom/src/server/ReactDOMServerFormatConfig.js index 3e77b7ce35a8e..377f6b45ebfd7 100644 --- a/packages/react-dom/src/server/ReactDOMServerFormatConfig.js +++ b/packages/react-dom/src/server/ReactDOMServerFormatConfig.js @@ -691,6 +691,7 @@ function pushStartOption( let children = null; let value = null; let selected = null; + let innerHTML = null; for (const propKey in props) { if (hasOwnProperty.call(props, propKey)) { const propValue = props[propKey]; @@ -716,10 +717,8 @@ function pushStartOption( } break; case 'dangerouslySetInnerHTML': - invariant( - false, - '`dangerouslySetInnerHTML` does not work on