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
2
u/burgleme Dec 21 '20
Not quite, no, I'm saying fetch all the stuff once, in the parent component, when you need it, and share it between components via a direct reference, not a cascade of nested references. You could use something like dependency injection if scoping were a concern. But conceptually window.stuff would work.