Kowsik Gunasekaran
Kowsik Gunasekaran

Reputation: 11

Can we setup client and server side rendering on same react app?

I would like to create a react app which should have both server and client side rendering so that we can take build accordingly using different npm commands

I've tried configuring but got issue as i had two package.json

Upvotes: 1

Views: 327

Answers (1)

Nacim Idjakirene
Nacim Idjakirene

Reputation: 1931

If you want to be flexible with your rendering strategies, you can use Next.js as it let you choose how to render your page according to your needs :

Server-side rendering, Client-side rendering, and static-site generation. If you want to learn more about next.js rendering you can refer to the Next.js documentation

Upvotes: 1

Related Questions