Skip to content

SujayPrabhu96/React-Keys-Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Keys

Using array index as key can lead to bad consequences. This project shows differences between using array index as key and using id from dataset as key with the help of Carousel Transitions

Commands

git clone https://github.com/SujayPrabhu96/React-Keys.git
cd React-Keys
yarn
yarn add react-transition-group
yarn start

Demo Link

https://suspicious-davinci-73dfae.netlify.app/

Blog Link

https://crypt.codemancers.com/posts/2021-04-14-using-index-of-an-array-as-key-can-lead-to-bad-consequences/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published