2 ms·
Looks interesting -- what's up with that Redirect component though ...? That seems all kinds of strange to me conceptually. My mind is trying to justify it li
by breatheoften 10y ago
Looks interesting -- what's up with that Redirect component though ...? That seems all kinds of strange to me conceptually.
My mind is trying to justify it like this: Render me a component that's going to manage the state involved in transitioning to a new page ... I guess that kind of makes sense -- since a redirect is an inherently stateful process.
- marshallford 10y agoI too am confused by this. I found this GitHub issue [1] when searching for a withRouter HOC replacement. 1. https://github.com/ReactTraining/react-router/issues/3847 https://github.com/ReactTraining/react-router/issues/3847