Simplify your React code using shorter setState syntax