function handleClick()

in 07 - Returning State/03 - Default Props and Initial State.js [32:38]


function handleClick(props, state, event) {
  if (event.button === 2) {
    return { count: 0 };
  }
  props.onClick();
  return { count: state.count + 1 };
}