How do you create something like multiple pages or a carousel in plasmo?

Hi, I'm pretty new so sorry if this is obvious. I have an image of an example of what I want, I want to be able to click a arrow or drag in a direction and access a new page in a chrome extension, how do I do that? Am i supposed to use react router or something? I appreciate all the help :) !!
10 Replies
Arcane
Arcane•2y ago
@Andy has reached level 3. GG!
lab
lab•2y ago
Am i supposed to use react router or something? I appreciate all the help :) !!
Yup, or simply swap the view with an enum or something similar
Andy
AndyOP•2y ago
hey thanks! but how do i do the following like this in react but in a plasmo extension?
YAGPDB.xyz
YAGPDB.xyz•2y ago
Gave +1 Rep to @louis
Andy
AndyOP•2y ago
<BrowserRouter> <App /> </BrowserRouter>
lab
lab•2y ago
GitHub
examples/with-react-router at main · PlasmoHQ/examples
🔰 Example projects that demonstrate how to use the Plasmo Framework and integrate with popular tools - examples/with-react-router at main · PlasmoHQ/examples
Andy
AndyOP•2y ago
ty!! sorry but one more thing, so do i need to put all my components in a routes folder? or can i route by just specificying the path?
lab
lab•2y ago
that routes directory is just an example. See the popup or the page that setup the memory router. You can structure it however you want since we're just importing components
Andy
AndyOP•2y ago
and how about to create a careousel effect when swapping pages? does framer motion work?
lab
lab•2y ago
yes it should - I use it in my extension :)
Want results from more Discord servers?
Add your server