in 07 - Returning State/02 - Module Pattern.js [10:18]
function handleClick(props, state, event) {
if (event.button === 1) {
return { count: 0 };
}
if (props.onClick) {
props.onClick();
}
return { count: state ? state.count + 1 : 0 };
}