0 Followers
0 Following
2 Posts

Did you know there are multiple ways to set initial values in React's useState?đź’ˇ
Check out my latest article to master this essential hook and discover techniques you probably didn’t know about!

#react #usestate #hooks #javascript

https://medium.com/@vardan.hakobyan/mastering-usestate-in-react-setting-initial-values-the-right-way-4b570c0b3c2b

Mastering useState in React: Setting Initial Values the Right Way

If you use React, you’ve almost certainly come across the useState hook. Did you know that there are several ways to provide the initial value for this hook? Let's explore these options. Sometimes…

Medium

🔑React Key Misconceptions Demystified👨‍💻

Many devs (even seasoned ones) claim you must never use index as a key in React lists. But there are cases where it's perfectly fine. To know when, you need to understand the "why" behind React keys.
I break it down in my new article 👇

https://javascript.plainenglish.io/react-keys-demystified-when-using-index-as-a-key-isnt-that-bad-e09534e2f6a2

React Keys Demystified: When Using Index as a Key Isn’t That Bad

As React developers, we’ve all heard the mantra: “Don’t use array index as a key!” It’s repeated so often that it’s become an unquestionable rule for many. But like many rules in programming, the…

JavaScript in Plain English