Hacker News new | ask | show | jobs
by what_is_orcas 1652 days ago
I think I use it like you do. From my perspective, it's just much clearer when I haven't seen the code in a while and need to immediately understand what's going on. Also, I'd be interested in profiling the two different ways of managing state because I can't imagine that recreating a composite state object could be as fast as updating one value, but I haven't done that and I haven't really looked into how the spread operator works under the hood... maybe it's super fast.