4 Commits

Author SHA1 Message Date
b38004a08a Add Modal.tsx 2019-03-26 20:33:00 +08:00
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
5c847b94e6 Add full test for LoginForm 2019-01-20 21:39:32 +01:00
26f106fcae Create LoginForm 2019-01-19 19:21:56 +01:00