News for hackers. Stuff that matters.
Re:React Router v5 by bryanrasmussen on Thursday March 21, 2019 @03:47AM (#19449914)
I guess you might need a polyfill for window.location.origin depending on target browsers, and since they discussed relative urls earlier I guess they want to handle relative urls as well and probably want to also handle starts with //.

I think generally what happens, based on what I often end up doing and what I've seen in bigger projects that depend on React Router, is you make a linker component to handle issues, and in fairness you end up not having a 1 liner then.

There are no comments on this comment yet.