I’m trying to add a button inside the component which is link ()as a whole already. But I want my button to be unlinked but also positioned inside that linked component.
I mean when I click on that button it should do what function I assigned using (onClick)but not redirecting to the component Link.
I’m working with SPA using React.
return(
{name}
{cuisine}
Rating: {rating}
Delivery Time: (deliverytime+”minutes”}
{costfortwo}
Add/button
Prakash Magudeeswaran is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.