NfNitLoop ("Cody Casterline 🏳️🌈") wrote:
@slightlyoff I find it frustrating that he says "This is the 101 React Mistake", "How did this ever get into production?", "Code like this should be so dang obvious".
Where's the empathy for the developers?
I'm not a FE engineer but I've used enough React to know about this problem and still it's not obvious, because it's hidden, unintuitive behavior. It looks like you're doing the right thing at the call site, unless you trace the whole code path to check the type of every param.

![Cray avoided publicity. There are a number of unusual tales about his life away from work, termed "Rollwagenisms", from then-CEO of Cray Research, John A. Rollwagen. Cray enjoyed skiing, windsurfing, tennis, and other sports. Another favorite pastime was digging a tunnel under his home; he attributed the secret of his success to "visits by elves" while he worked in the tunnel: "While I'm digging in the tunnel, the elves will often come to me with solutions to my problem."[35][36]](https://files.mastodon.social/cache/media_attachments/files/115/217/885/494/699/980/original/f4a1b012a0a72db2.png)




