I am using react js to build the application, also I am using Inertia Js.
I have this element:
<ClickMe
clickHandler={() =>
Inertia.visit(route("car.w", { id: id, data: dataCar }))
}
/>
How you can see I have this:
clickHandler={() =>
Inertia.visit(route("car.w", { id: id, data: dataCar }))
}
...to access the route.
Issue: When I click on it I open the page in the same tab, but I want to open in a new tab, using something like _blank
, but it does not work.
How, clicking on the item above to open the content in the new tab?
question from:
https://stackoverflow.com/questions/65952932/how-to-go-to-a-blank-page-in-reactjs 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…