Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const handleSelectAllButtonClick = () => {
  2.   if (areAllIconsSelected) {
  3.     deselectAllIcons();
  4.   } else {
  5.     selectAllIcons();
  6.   }
  7. };
  8.  
  9. const handleSelectAllButtonClick = () => areAllIconsSelected ? deselectAllIcons() : selectAllIcons();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement