I'm kind of confused, is this the correct way of using the onClick function?
<Button
color="gray"
disabled={!props.horse.canBeBought}
onClick={() => {
console.log("running button onClick");
onPurchase(props.horse.id, props.horse.price);
}}
>
Purchase
</Button>
``` ?