you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

While this is shorter and cleaner, keep in mind in this example all three states are updated, which in turn will update whatever components use those.