Am I missing the point of using `use` for data fetching with server components?
In the react docs, they give the following example for how to use the
use
function:
I'm not quite sure I get the benefit of doing that over having the Message
component be a server component and fetch the data in there:
To me it seems like the two examples lead to the equivalent UX and I don't see any benefit of using the use
function and passing the promise from the server component to the client component. Am I missing the point?use – React
The library for web and native user interfaces
0 Replies