Hi, if your backend services are using GraphQL, you can actually use react-apollo and you can then declare your data requirement in the component itself. The SSR process is very simple since react-apollo just provide function like renderToStringWithData() or getDataFromTree() to automatically fetch all the data in your component tree.
But, if you are not using graphql, but just simple fetch GET request, I don't think there were any solution like react-apollo. So, I decided to create one myself! I named it react-isomorphic-data. It still needs more fine-tuning and a lot of docs to complete though. Check it out :)
I am assuming you are talking about zoom/websdk. If so, the code should still be initialised on the client side, as I think they are using browser APIs and not meant to run on a Node.js environment.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, if your backend services are using GraphQL, you can actually use
react-apollo
and you can then declare your data requirement in the component itself. The SSR process is very simple sincereact-apollo
just provide function likerenderToStringWithData()
orgetDataFromTree()
to automatically fetch all the data in your component tree.But, if you are not using graphql, but just simple fetch GET request, I don't think there were any solution like react-apollo. So, I decided to create one myself! I named it react-isomorphic-data. It still needs more fine-tuning and a lot of docs to complete though. Check it out :)
Hi, are we able to use a package like zoomus/websdk within SSR structure?
I am assuming you are talking about zoom/websdk. If so, the code should still be initialised on the client side, as I think they are using browser APIs and not meant to run on a Node.js environment.