Content
@
0 reply
0 recast
0 reaction
greg
@gregfromstl
Next devs: How much of your frontend do you render server-side? In the past few weeks I’ve gone from hardcore SSR advocate to confused/questioning what I thought was the best way to do things. From what I’ve seen others are starting to feel the same
6 replies
1 recast
5 reactions
Noclue4u
@noclue4u
I’ve just launched a project where everything was on the server that could. I started when server actions where not a thing yet, so I possibly could get an even more higher coverage. It’s a different mindset and approach to building projects. All components are server comps and you use client on interactivity.
1 reply
0 recast
1 reaction
Noclue4u
@noclue4u
@gregfromstl it’s actually quite awesome. Only dialogs/alerts etc. Are needed on client side. Since with server actions you can keep all the form stuff also on the server. For mobile menu’s I just create a header comp. on the server and for mobile a client that is included in the header comp. 1/2
1 reply
0 recast
0 reaction
Noclue4u
@noclue4u
@gregfromstl this way I can pass all the data from the server to only the piece of code that needs to be interactive (the mobile header/nav). 2/2
0 reply
0 recast
0 reaction