File tree Expand file tree Collapse file tree
src/content/reference/react Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -414,9 +414,9 @@ export default function List({ items, renderItem }) {
414414 {items .map ((item , index ) => {
415415 const isHighlighted = index === selectedIndex;
416416 return (
417- < HighlightContext . Provider key= {item .id } value= {isHighlighted}>
417+ < HighlightContext key= {item .id } value= {isHighlighted}>
418418 {renderItem (item)}
419- < / HighlightContext . Provider >
419+ < / HighlightContext>
420420 );
421421 })}
422422` ` `
@@ -472,12 +472,12 @@ export default function List({ items, renderItem }) {
472472 {items .map ((item , index ) => {
473473 const isHighlighted = index === selectedIndex;
474474 return (
475- < HighlightContext . Provider
475+ < HighlightContext
476476 key= {item .id }
477477 value= {isHighlighted}
478478 >
479479 {renderItem (item)}
480- < / HighlightContext . Provider >
480+ < / HighlightContext>
481481 );
482482 })}
483483 < hr / >
You can’t perform that action at this time.
0 commit comments