Here is the demo codesandbox link: https://codesandbox.io/s/express-fork...
Fetch API Response Stream gives us the possibility to handle response in a progressive way rather than waiting for the whole data to arrive. Pretty powerful if the server logic is heavy, or the response is purely too much a burden.
more resources on MDN:
https://developer.mozilla.org/en-US/d...
https://developer.mozilla.org/en-US/d...
Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode & BFE.dev. If you are interested, maybe we can learn together.