Mastodon Feed: Post

Mastodon Feed

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.