We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f4b6c1 commit 05d8d8aCopy full SHA for 05d8d8a
packages/react-dom-bindings/src/client/ReactDOMComponent.js
@@ -747,14 +747,8 @@ function setPropOnCustomElement(
747
}
748
case 'children': {
749
if (typeof value === 'string') {
750
- if (__DEV__) {
751
- validateTextNesting(value, tag);
752
- }
753
setTextContent(domElement, value);
754
} else if (typeof value === 'number') {
755
756
- validateTextNesting('' + value, tag);
757
758
setTextContent(domElement, '' + value);
759
760
break;
0 commit comments