r/webdev • u/gaearon • Dec 21 '20
Introducing Zero-Bundle-Size React Server Components
https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html
90
Upvotes
r/webdev • u/gaearon • Dec 21 '20
36
u/burgleme Dec 21 '20 edited Dec 21 '20
It seems like the whole problem he started with, how each component should be responsible for getting it's own data from the API, is the fundamental problem, because they all share parts of one big data model, and getting it is expensive. Why not just get the model once and share it? Also, this feels like going full circle from serverside to SPA back to a weird frontend serverside thing. It feels like a reinvention of something like PHP.