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 eedf121 commit 4840175Copy full SHA for 4840175
packages/react-dom-bindings/src/client/ReactDOMComponent.js
@@ -2211,7 +2211,7 @@ function diffHydratedCustomComponent(
2211
continue;
2212
2213
// Fall through
2214
- case 'className':
+ case 'className': {
2215
// className is a special cased property on the server to render as an attribute.
2216
extraAttributes.delete('class');
2217
const serverValue = getValueForAttributeOnCustomComponent(
@@ -2221,6 +2221,7 @@ function diffHydratedCustomComponent(
2221
);
2222
warnForPropDifference('className', serverValue, value);
2223
2224
+ }
2225
2226
2227
default: {
0 commit comments