Question
React SDK doc state it works only on Client side (Browser), is there a way to use it for SSR (Server Side Rendering)?
Answer
As stated, the React SDK supports only Browser side, in React development, to run the SDK on server side, we have to use the NextJS SDK.
One of the popular libraries for SSR is using Next.js library, the example in this Knowledge Base shows both SDK rendering in Browser and Server modes, browser side uses React SDK and server side uses Node SDK. In reality, there is no need to have both rendering in one app, the example simply showing how to use both rendering.
Comments
0 comments
Please sign in to leave a comment.