Next.js Discord

Discord Forum

It's possible to use Server-Side-Rendering to render only a part of an web application?

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
I have a SPA web app that was developed using a traditional way (client side) in React. Now, for one particular part of this web-app (a widget) I want to make it rendered with a Server Side Rendering approach.
It's possible to accomplish that with NextJS?

11 Replies

yes
NextJS renders components server side by default
Sun bearOP
Ok, what I want is that the SSR return only a fragment of the page, not the entire document. Imagine that I have multiples servers and each one correspond to a peace of app.
Umm you can do that, but I don't see any sense in that
and for SSR, the app won't be static then.
Sun bearOP
There's a use case in the company that I work that needs this.
Exactly, the app won't be static, but each of those 'widgets' have its own dedicated team, and we want that all its development lifecycle should be handled by the team itself.
Any chance that you having an example showing this kind of thing?
Umm so do you want the widget to be fetched from a db?
Is your issue resolved?
If it is, add in this thread how it got resolved, and mark it as solution
If you've any other queries, don't hesitate to ping me, even in any other thread!