Passing a function instead of calling it in event handlers (onClick={handleClick()} instead of onClick={handleClick}) ReactJS