Skip to content

Commit 41aae13

Browse files
committed
Remove unnecessary keys
1 parent fe19acd commit 41aae13

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/material-ui/src/Rating/Rating.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,11 @@ function RatingItem(props) {
249249
);
250250

251251
if (readOnly) {
252-
return (
253-
<span key={itemValue} {...labelProps}>
254-
{container}
255-
</span>
256-
);
252+
return <span {...labelProps}>{container}</span>;
257253
}
258254

259255
return (
260-
<React.Fragment key={itemValue}>
256+
<React.Fragment>
261257
<RatingLabel
262258
styleProps={{ ...styleProps, emptyValueFocused: undefined }}
263259
htmlFor={id}

0 commit comments

Comments
 (0)