Well I´m new to React and I'm really struggling. I have a set of buttons, each one with id asigned from result of Http request. After onClick I would want to send that id to different part of application via Router. should be relatively easy?
<Col>
<div className="wrapper">
<Button id={receptura.id} variant="primary" onClick={handleClick(this)}>
Přejít
</Button>{" "}
</div>
</Col>
thats my button and i want smth like this
function handleClick(e) {
alert(e.id);
};
whats the real solution to this?