I'm new to React tabs. I have built tabs in bootstrap but the problem is, I don't know how I can open a new page when clicked on a tab.
Here is my code:
import { Container, Row, Tabs, Tab } from "react-bootstrap";
import React from "react";
import "./Tabs.css";
import BsTab from "./BsTab";
const BsTabs = () => {
return (
<div>
<Container className="py-4">
<Row className="justify-content-center">
<Tabs
justify
variant="pills"
defaultActiveKey="home"
className="mb-1 p=0"
>
<Tab eventKey="kurye Tasimasi" title="Kurye Tasimasi">
<BsTab />
</Tab>
<Tab eventKey="Hava Yolu Tasimasi" title="Hava Yolu Tasimasi">
<BsTab />
</Tab>
<Tab eventKey="Deniz Yolu Tasimasi " title="Deniz Yolu Tasimasi">
<BsTab />
</Tab>
</Tabs>
</Row>
</Container>
</div>
);
};
export default BsTabs;
So basically, what I want is to open a new page when clicked on one of the tabs.
If you want to open new pages when user click the tab, then why don't you just use links with target="_blank" instead of the Tabs/Tab modules?