Jerko Steiner cf8aefd099 Add custom Redirect component
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
2019-03-17 19:59:46 +05:00
2019-03-17 19:59:46 +05:00
2019-03-13 12:53:24 +05:00
2019-01-18 23:01:37 +01:00
2019-03-16 10:13:08 +05:00
2019-01-18 20:15:13 +01:00
2019-03-17 15:04:15 +05:00
2019-03-17 15:04:15 +05:00
Description
No description provided
2.5 MiB
Languages
TypeScript 97.9%
JavaScript 2%