I have a component that retrieves data from a server or API, which ideally should be a server-side component. Essentially, this component is a page with a button. When this button is clicked, it reveals content that is originally hidden, thus creating a toggling effect. It's important to note that there's no additional request or anything similar on the client-side. Once the HTML is accessible, we aim to add certain interactivity to it, similar to how jQuery events are connected to existing HTML. For instance, if any DOM has a click event, upon clicking, it should display the underlying content that's hidden by default with a hidden class. How can we accomplish this with a server-side component? Do we genuinely require a client-side component for this task? https://tenor.com/view/confused-confusing-noidea-cat-gif-14787244675382286846
#server side toggle effect ?
4 messages · Page 1 of 1 (latest)
🔎 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)