Expected an assignment or function call and instead saw an expression in onClick method

when i write this code

<Button click={() => 
             { props.hide; props.history.push('/checkout'); }} >Go To CHECKOUT</Button>

it gives me that error Expected an assignment or function call and instead saw an expression

what should i do ?

Source: React Router Questions