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 aeffeed commit c7c8277Copy full SHA for c7c8277
packages/react-dom/src/server/ReactDOMServerFormatConfig.js
@@ -1168,6 +1168,20 @@ export function pushStartInstance(
1168
'probably not intentional.',
1169
);
1170
}
1171
+
1172
+ if (
1173
+ formatContext.insertionMode !== SVG_MODE &&
1174
+ formatContext.insertionMode !== MATHML_MODE
1175
+ ) {
1176
+ if (type.toLowerCase() !== type) {
1177
+ console.error(
1178
+ '<%s /> is using incorrect casing. ' +
1179
+ 'Use PascalCase for React components, ' +
1180
+ 'or lowercase for HTML elements.',
1181
+ type,
1182
+ );
1183
+ }
1184
1185
1186
1187
switch (type) {
0 commit comments