reactjs / server-components-demo

Demo app of React Server Components.
https://reactjs.org/server-components
MIT License
4.27k stars 640 forks source link

Using react-fetch on client #31

Open natew opened 3 years ago

natew commented 3 years ago

It seems using react-fetch purely on the client side (with all react versions on 0.0.0-experimental-3310209d0) it doesn't match what you see on the server, I get promises that aren't unwrapped.

It has a .browser version but I don't see any example usage on client, so will just leave this open for further information on if this is intended to work.

gaearon commented 3 years ago

Can you clarify what you’re seeing? I think I tried it and it worked as I expected but might have missed something.