File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/react-dom/src/server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1324,7 +1324,7 @@ class ReactDOMServerRenderer {
1324
1324
context : Object ,
1325
1325
parentNamespace : string ,
1326
1326
) : string {
1327
- const tag = element . type . toLowerCase ( ) ;
1327
+ const tag = element . type ;
1328
1328
1329
1329
let namespace = parentNamespace ;
1330
1330
if ( parentNamespace === HTML_NAMESPACE ) {
@@ -1335,7 +1335,7 @@ class ReactDOMServerRenderer {
1335
1335
if ( namespace === HTML_NAMESPACE ) {
1336
1336
// Should this check be gated by parent namespace? Not sure we want to
1337
1337
// allow <SVG> or <mATH>.
1338
- if ( tag !== element . type ) {
1338
+ if ( tag . toLowerCase ( ) !== element . type ) {
1339
1339
console . error (
1340
1340
'<%s /> is using incorrect casing. ' +
1341
1341
'Use PascalCase for React components, ' +
You can’t perform that action at this time.
0 commit comments