DEV Community

Discussion on: Top Tools for React Server-Side Rendering Applications

Collapse
 
abbamalik profile image
Mahmoud Mohamed

can I use the server component in react app without using any frameworks like nextjs or it need ueing SSR to use it ?

Collapse
 
maxh1t profile image
Max

Yes, you can use Server Components without any frameworks like Next.js, but they do require a server environment to function properly. They can't be used purely in a client-only React app.

I'll add this point. Thanks for your comment!

Collapse
 
abbamalik profile image
Mahmoud Mohamed

thanks for clarify, but it is easy to use framework instead of create your own server by your self it make app complex. but in framework you will use server components direct.

what your preferred

Thread Thread
 
maxh1t profile image
Max

Sure, setting up your own server with some logic for a frontend project is mostly overhead. It's needed for some specific cases, like building your own framework๐Ÿ˜„

If I had to start a project with SSR now, I would choose Next.js, because it has full support for RSC and hybrid rendering (SSR + SSG), but if I only need SSR and nothing else, I'd rather choose Remix.

Also keep in mind that it is difficult to deploy. SSR has some limitations in Versel and Cloudflare on the free plans.

Thread Thread
 
abbamalik profile image
Mahmoud Mohamed

I got it Thanks โ™ฅ