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
@Andy has reached level 3. GG!
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
hey thanks! but how do i do the following like this in react but in a plasmo extension?
Gave +1 Rep to @louis
<BrowserRouter>
<App />
</BrowserRouter>
See this example: https://github.com/PlasmoHQ/examples/tree/main/with-react-router
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
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?
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
and how about to create a careousel effect when swapping pages?
does framer motion work?
yes it should - I use it in my extension :)