react-router v4 was made before React introduced a more performant function renderToNodeStream to replace renderToString. All guides for react-router are made using renderToString method, but I would love to use the renderToNodeStream instead. Since we cannot issue a 302 redirect after the page has already been rendered (because status codes are written first), we can display a <a> link with a text message. Once the React client-side library hydrates the DOM Tree, the redirect should happen client side, so no user action should be required. This idea was taken from: https://github.com/ReactTraining/react-router/issues/6191
Description
No description provided
Languages
TypeScript
97.9%
JavaScript
2%