DEV Community

Discussion on: React SSR fetch per components

Collapse
 
jackyef profile image
Jacky Efendi • Edited

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 :)

Collapse
 
dramoslace profile image
Deiby Dayans R

Hi, are we able to use a package like zoomus/websdk within SSR structure?

Collapse
 
jackyef profile image
Jacky Efendi

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.