#sidebar trick and routing

1 messages · Page 1 of 1 (latest)

opaque cragBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

bleak tulip
#

you can do that by creating two different component and reusing the components for the stuff that already exists.

When on mobile, render a "MobileScreen" componet (for example) and on large screens render a "LargeScreen" component.

Instead of then rewriting all the functionalities for each and every page, extract the specific parts to their own components so you can reuse them where needed.

Like that you can easily change the displaying of it, but keep the functionality the same

bleak tulip
#

Hmm I think I should've specified that my issue is with how to create the layout.

I don't think you need a layout here, because both are very different pages. So I would work with just two different components

opaque cragBOT