Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 使用<;重定向/>;从反应路由器_Reactjs_Redirect_React Router - Fatal编程技术网

Reactjs 使用<;重定向/>;从反应路由器

Reactjs 使用<;重定向/>;从反应路由器,reactjs,redirect,react-router,Reactjs,Redirect,React Router,当我点击应用程序中的按钮时,我需要重定向到一个全新的应用程序。这意味着从URL:localhost:8080,我需要重定向到stackoverflow.com 如果我使用我会得到:http://localhost:8080/https://stackoverflow.com 因此,它将新地址附加到旧地址,我需要的是将我重定向到stackoverflow.com。 有没有办法使用react路由器的重定向组件来实现这一点?谢谢。只需使用锚定标记?我想知道我是否可以使用此重定向组件或类似于重定向的其他

当我点击应用程序中的按钮时,我需要重定向到一个全新的应用程序。这意味着从URL:localhost:8080,我需要重定向到stackoverflow.com 如果我使用
我会得到:http://localhost:8080/https://stackoverflow.com 因此,它将新地址附加到旧地址,我需要的是将我重定向到stackoverflow.com。
有没有办法使用react路由器的重定向组件来实现这一点?谢谢。

只需使用锚定标记?我想知道我是否可以使用此重定向组件或类似于重定向的其他组件。这是否回答了您的问题?没有,因为我一直在寻找的不是建议的解决方案,不过还是谢谢你