r/reactjs • u/acemarke • Oct 30 '17
Beginner's Thread / Easy Questions (week of 2017-10-29)
Looks like the last thread stayed open for quite a while, and had plenty of questions. Time for a new thread! (I should probably consider labeling these as monthly or something :) )
Soo... Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple.
The Reactiflux chat channels on Discord are another great place to ask for help as well.
23
Upvotes
View all comments
Show parent comment
1
u/roessera Nov 15 '17
But the server-side logic would still be embedded within the React component, correct? Meaning, Webpack would still bundle it up and spit it out for the client side to consume.
I was looking for a solution that allows a server-side only fetch (say, using Node), grab that data, and pass it to a React component to render. That way it doesn't fire twice (client and server)
I was thinking this could be done inside a React component (through some sort of server-side only method), but it sounds like I would have to do it else where.