首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 ><Link to={} not working>

<Link to={} not working>
EN

Stack Overflow用户
提问于 2016-08-25 05:59:05
回答 1查看 295关注 0票数 0

我希望在创建路由器对象的外部使用路由。我怎么能这么做?

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
<div className="col-sm-2 hidden-xs sidebar-container-wrapper">
  <Sidebar currentUrl={currentUrl}/>
</div>
<div className="col-sm-10 col-xs-12 groups-container-wrapper">
  <Provider store={ this.myStore }>
    <Router history={ history } onUpdate={() => window.scrollTo(0, 0)}>
      { routes }
    </Router>
  </Provider>
</div>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-25 06:05:07

Programmatically push state。或者,把链接放在路由器下面使用链接.

此外,HoC也可用于更新版本。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39147367

复制
相关文章
Working with APIs
与我们获取网页相似,我们对API发出请求数据的请求,然后服务器作出相应,返回我们请求的数据。这一过程在python中主要通过requests库实现 发起请求:
爱编程的小明
2022/09/05
2970
AWS EKS metrics not working issue
AWS EKS metrics by default not installed and after installation, we can't get the metrics. The problem is caused by internal IP, so fixing the deployment.yaml by adding
贺思聪
2020/04/30
5390
AWS EKS metrics not working issue
Eclipse之working sets使用
Eclipse是开发Java最常用的一个软件,但是当我们项目变多的时候,就变得十分繁杂不好查找。还好eclipse给我们提供了working sets使用。 步骤如下:
听城
2018/08/08
3380
Eclipse之working sets使用
Working中常用ADB
adb logcat -s blink或adb shell "getprop sys.btauthorised"
用户6367961
2019/09/29
7550
Working with Errors in Go 1.13
Damien Neil and Jonathan Amsterdam 17 October 2019
陌无崖
2020/07/27
5370
Start transaction not working with Revit 2014
You're right, it's not being used correctly. The Transaction needs to take place inside the Idling event. The button click handler and Idling event handler should look something like this in Revit 2014: void revitApp_Idling(object sender, Autodesk.Rev
hbbliyong
2018/03/06
8040
The Missing Link
静态链接还是动态链接?在这一点上,FreeSWITCH是怎么做的?接下来我想跟大家讨论一下这个问题。
杜金房
2020/12/21
1.6K0
【Mysql】Working with time zones...
Working with time zones, timestamps and datetimes in Laravel and MySQL - Advanced and Qualified electronic signature marketplace (eideasy.com)
阿东
2023/10/24
2070
【Mysql】Working with time zones...
Working with categorical variables处理分类变量
Categorical variables are a problem. On one hand they provide valuable information; on the other hand, it's probably text—either the actual text or integers corresponding to the text—like an index in a lookup table.So, we clearly need to represent our text as integers for the model's sake, but we can't just use the id field or naively represent them. This is because we need to avoid a similar problem to the Creating binary features through thresholding recipe. If we treat data that is continuous, it must be interpreted as continuous.
到不了的都叫做远方
2019/10/29
8460
link怎么连接[tp-link默认密码]
大家好,我是架构君,一个会写代码吟诗的架构师。今天说一说link怎么连接[tp-link默认密码],希望能够帮助大家进步!!!
Java架构师必看
2022/02/24
2.7K0
LINK : fatal erro…
VS2010在经历一些更新后,建立Win32 Console Project时会出“error LNK1123” 错误,解决方案为将 项目|项目属性|配置属性|清单工具|输入和输出|嵌入清单 “是”改为“否”即可,但是没新建一个项目都要这样设置一次。 在建立VS2010 Win32 Project项目时,按照上面解决方案依然发生了“error LNK1123”错误,经过上网查资料,解决方案为: 第一步:与上相同。 第二步:将 项目|项目属性|配置属性|连接器|清单文件|嵌入清单 “是”改为“否”。 第三步:一般计算机经过上两步设置就能解决问题了,但是如果还有问题,那就按一下方法解决: 计算机是否为64bit操作系统,如是,继续2。 查找是否有两个cvtres.exe。一个是C:\Program Files(x86)\Microsoft Visual Studio 10.0\vc\bin\cvtres.exe, 另一个是C:\Windows\Microsoft.NET\Framework\v 4.0.30319\cvtres.exe。右键属性|详细信息 查看两者版本号,删除/重命名较旧的版本,或者重新设置Path变量。
钱塘小甲子
2019/01/29
1.2K0
Friend link subscription
本帖为对冰老师的友链朋友圈项目的前端配置方案进行主题插件化适配的应援帖,并不包括关键的后端配置内容。后端配置请参看冰老师的原帖基于hexo的友链朋友圈 Beta1.0,本帖的内容对应原帖的步骤四:配置 HEXO 页面。考虑到冰老师的源项目也仍旧处于开发状态,故本帖也会尽可能的紧跟进度实时更新。
Akilar
2021/06/11
1.4K0
git subtree pull 错误 Working tree has modifications
git subtree 是不错的东西,用于 git 管理子项目。 本文记录我遇到问题和翻译网上的答案。
林德熙
2018/09/18
2K0
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 Check for working CXX compiler using: Visual Studio 10 – works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done ERRORNeither ‘svn’ nor ‘git’ as SCM found Git branch Build CGAL from git-branch: n/a Removed not-a-package: .gitattributes;.gitignore;out Installation package directory: D:/Cgal/cgal-releases-CGAL-4.0_vs2005/Installation Maintenance package directory: D:/Cgal/cgal-releases-CGAL-4.0_vs2005/Maintenance Core package directory: D:/Cgal/cgal-releases-CGAL-4.0_vs2005/Core Packagenames: AABB_tree;Algebraic_foundations;Algebraic_kernel_d;Algebraic_kernel_for_circles;Algebraic_kernel_for_spheres;Alpha_shapes_2;Alpha_shapes_3;Apollonius_graph_2;Approximate_min_ellipsoid_d;Arithmetic_kernel;Arrangement_on_surface_2;BGL;Boolean_set_operations_2;Box_intersection_d;CGAL_ipelets;CGALimageIO;Cartesian_kernel;Circular_kernel_2;Circular_kernel_3;Circulator;Combinatorial_map;Conic_2;Convex_decomposition_3;Convex_hull_2;Convex_hull_3;Convex_hull_d;Core;Developers_manual;Distance_2;Distance_3;Envelope_2;Envelope_3;Filtered_kernel;Generator;Geomview;GraphicsView;HalfedgeDS;Hash_map;Homogeneous_kernel;Installation;Interpolation;Intersections_2;Intersections_3;Interval_skip_list;Interval_support;Inventor;Jet_fitting_3;Kernel_23;Kernel_d;Kinetic_data_structures;LEDA;Largest_empty_rect_2;Linear_cell_complex;MacOSX;Maintenance;Manual;Manual_tools;Matrix_search;Mesh_2;Mesh_3;Min_annulus_d;Min_circle_2;Min_ellipse_2;Min_quadrilateral_2;Min_sphere_d;Min_sphere_of_spheres_d;Minkowski_sum_2;Minkowski_sum_3;Modifier;Modular_arithmetic;Nef_2;Nef_3;Nef_S2;Number_types;OpenNL;Optimisation_basic;Optimisation_doc;Partition_2;Periodic_3_triangulation_3;Point_set_2;Point_set_processing_3;Polygon;Polyhedron;Polyhedron_IO;Polynomial;Polytope_distance_d;Principal_component_analysis;Profiling_tools;QP_solver;Qt_widget;Random_numbers;Ridges_3;Robustness;STL_Extension;Scripts;SearchStructures;Segment_Delaunay_graph_2;Skin_surface_3;Snap_rounding_2;Solver_interfa
用户3519280
2023/07/08
1860
flask 流式响应 RuntimeError: working outside of request context
1、问题 最近要实现这样一个功能:某个 cgi 处理会很耗时,需要把处理的结果实时的反馈给前端,而不能等到后台全完成了再咔一下全扔前端,那样的用户体验谁都没法接受。 web 框架选的 flask,这个比较轻量级,看了下官方文档,恰好有个叫 Streaming from Templates 的功能: http://flask.pocoo.org/docs/patterns/streaming/#streaming-from-templates 可以满足需求,它以 generate yield 为基础,流式的返
用户1177713
2018/02/24
4K0
UITextView Link 颜色
UITextView 设置 NSAttributedString.Key.foregroundColor : UIColor.qvmedi_color(withHEX: 0x304EFF) 不起作用 新增 textView.linkTextAttributes = [:] textView.attributedText = attrStr
developerbfl
2021/04/19
1.9K0
link 链表反转
输入: a -> b -> c -> d -> e -> f  输出: b -> a -> d -> c -> f -> e
阳光岛主
2019/02/18
1.2K0
2018-07-24 MERGE Insert not working
https://www.sqlservercentral.com/Forums/1551626/MERGE-Insert-not-working
Albert陈凯
2018/08/03
2800
让link标签失效
此岸永远是残缺的,否则彼岸就要塌陷。——史铁生 一直有小伙伴吐槽我的博客太花哨了,想让我加个隐藏主题功能,于是我就加了一个 这里用到了jquery选择带对应属性的标签 我这里是让引入style.css的link标签失效了 关键代码如下: 隐藏 <!-- 选中head节点,找到href属性为'/css/style.css'的link标签,添加属性disabled为disabled --> $("head").children("link[href='/css/style.css']").attr(
阿超
2022/08/17
1.7K0
让link标签失效
点击加载更多

相似问题

通过link_to not working提交select帮助器值

11

React Router - Route working on Refresh in working build

10

premisson to working laravel

30

realm react native IN not working (Realm React Native IN Not Working)

137

单击function working,但DoubleClick function not working - jQuery

30
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文