DEV Community

Discussion on: The significance of React keys - a visual explanation

Collapse
stupidlymoron profile image
Khan Irfan • Edited on

Typo in 3rd image / Code snippet

<div>
    <span key=’0’>Josh</span>
    <span key=’1’>Joshina</span>
    <span key=’3’>Notjosh</span> (here)
</div>

last span should have key = '2'.