import * as React from "react"; import WikiPage from "./components/WikiPage"; import TabList, { TabListItem } from "./components/TabList"; import { useState } from "react"; export default function App() { const [tabs, setTabs] = useState([ { page: "Guide_to_chemistry" }, { page: "Guide_to_medicine" }, ]); const [activeTab, setActiveTab] = useState(0); return ( setActiveTab(i)} />
{tabs.map((tab, i) => ( ))}
); }