Reputation: 17
I want to make a component in next js, Component Name newsSection.jsx, where inside NewsSection.jsx we have 1 client component menu.tsx, 2. Content.tsx component,
For functionality, whenever click on menu item of menu.jsx we need 1. Server action get trigger and server action will fetch news based on menu item btn, 2, server action return html code instead, posts json data, 3. Server action returned jsx rendered on UI
How can we achieve this
Can we do it without url query string (as because I have many similar component in home page so in url there will be many query strings,)
Upvotes: -2
Views: 37