John
John
PD🧩 Plasmo Developers
Created by John on 5/2/2024 in #👟framework
How to create a new tab from a router?
Given an index.tsx: ex. import { Route, Routes } from "react-router-dom" import { Login } from "~newtab/login" export const Routing = () => ( <Routes> <Route path="/newtab/login" element={<Login />} /> </Routes> ) that is mapped from the popup.tsx as follows: import { Routing } from "~routes" import React from "react"; function IndexPopup() { return ( <Routing /> ) } export default IndexPopup How can i get my first login route to create a new tab?
3 replies