腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
在子组件上使用<Link>时this.context.
history
未定义
、
如何填充上下文,以便在
react-router
中使用标记时不会
未定义
历史记录?我收到的错误是:未捕获TypeError:无法读取
未定义
的
属性
'pushState‘if (allowTransition) this.context.
history
.pushState(this.props.state, this.props.to, this.props.query); 我使用的是
react-router
1.0.0-rc1。&
浏览 3
提问于2015-11-01
得票数 3
1
回答
react-router
,
属性
‘
history
`
未定义
、
、
、
、
但是我得到了一个错误 START GAME现在我想从GameInit返回到HomePage,就像这样 const {
history
, cancelGame } = this.props; cancelGame
浏览 1
提问于2018-08-31
得票数 3
回答已采纳
11
回答
reactjs -无法读取
未定义
的
属性
推送。
、
、
然而,React不断地说‘不能读取
属性
推送的
未定义
’我做错了什么?from "react";import {Router, Route, hashHistory, IndexRoute } from "
react-router
/page/archive"; ReactDOM.rend
浏览 11
提问于2016-04-07
得票数 9
回答已采纳
1
回答
React路由器导致无法读取
未定义
的
属性
“侦听”
、
、
、
当在服务器端使用
react-router
进行webpack构建时,我遇到了奇怪的js异常:我该怎么解决呢?
浏览 0
提问于2016-08-19
得票数 1
回答已采纳
2
回答
React路由器<Router>历史记录
属性
应传入什么内容?
、
、
我使用的是react路由器(版本4.0.0),而历史组件有一个必需的
属性
,名为“Router”。我知道在以前版本的
react-router
中,您可以从包中导入browserHistory或hashHistory,并将其作为
history
属性
传递给<Router>,但在v4中,这两种方法都不可用。该项目的可用文档没有提到如何处理这个所需的历史
属性
和,它引用了包的v4中不再提供的hashHistory导出。 有什么想法吗?
浏览 2
提问于2017-03-21
得票数 0
2
回答
React browserHistory.push给出
未定义
的TypeError:无法读取
未定义
属性
的“推送”
、
、
react';import { browserHistory } from '
react-router
a className={skipShow} onClick={this.skipClick}>Skip</a>)}import browserHistory from '
react-router
'; ReactDO
浏览 2
提问于2017-03-26
得票数 1
回答已采纳
1
回答
Erroron reactredux路由器
、
、
from 'redux'import { Router, Route, browserHistory } from '
react-router
/cards/cards' const App= () => {<Router <e
浏览 4
提问于2016-09-03
得票数 0
15
回答
read路由器:无法读取
未定义
属性
的“路径名”
、
、
、
未定义
的TypeError:无法在新路由器上读取
未定义
的
属性
的“路径名” var React = require('react');var { Route, Router, IndexRoute } = require('
react-router
'); var hashHistory = require(/components/Main'
浏览 0
提问于2017-04-25
得票数 62
回答已采纳
1
回答
ReactJS没有加载/呈现
、
、
错误: App.js: );} index.js: import { Router, Route,
History
} from '
react-router
浏览 0
提问于2017-03-13
得票数 5
回答已采纳
6
回答
无法读取react中
未定义
的
属性
'push‘
、
event) { // do some login logic here, and if successful: </form> )}我无法读取控制台中
未定义
的
属性</em
浏览 3
提问于2018-09-20
得票数 3
3
回答
如何在React中不点击<Link>切换页面?
在某些情况下,我需要在不单击任何内容情况下切换页面。让我点击一些btn,url等等。另外,我不想重新加载一个页面。有什么解决方案吗?
浏览 25
提问于2020-06-04
得票数 0
回答已采纳
1
回答
如何在反应式文本中绑定匹配?
、
、
我有这样的代码:import { match, RouteComponentProps } from "
react-router
"; }, path: '/tes
浏览 4
提问于2017-10-29
得票数 3
1
回答
ReactJS this.props.
history
.push不存在!this.props不包含历史记录
、
、
、
、
在这两个班级里我都有 import {browserHistory} from "
react-router
"; 当我点击图像时,控制台显示错误,无法读取
未定义
的
属性
'push‘。//// <div> <Route path="/profile" component={MyProfile</
浏览 94
提问于2019-02-24
得票数 3
2
回答
如何根据React中的条件重定向到特定的页面-路由器4
、
、
、
如何根据"
react-router
": "^4.0.0"中的条件重定向到特定的页面。react-redux'); if (user){ }else{ this.props.
history
.push('/
浏览 4
提问于2017-10-17
得票数 1
2
回答
React在没有链接的组件功能中设置路由
、
在我的react应用程序中,当我点击“添加新标签”时,我调用了“addNewproject”函数。在'addNewproject‘函数中,新的标签被添加到数据库中。我需要的是将我的路由设置为:addNewproject = () => {var
浏览 24
提问于2020-02-26
得票数 0
回答已采纳
1
回答
如何删除错误“无法读取
未定义
的
属性
‘位置’”
、
、
我做了一个
react-router
.but的演示,我得到了这个错误,无法读取
未定义
的的
属性
'location‘这里是我的代码import { render} from 'react-dom';import Hello from '.='/about&
浏览 5
提问于2017-07-21
得票数 1
2
回答
History
.push无法读取
未定义
的
属性
“支持”
我有个导航杆而我,我不知道我怎么能得到我的历史 onClick = {() => {this.props.
history
.push('/ xd')}} 无法读取
未定义
的
属性
“支持” const classes ="><Link to
浏览 4
提问于2019-12-10
得票数 0
回答已采纳
2
回答
React-Router
2.0哈希历史记录-如何删除查询
在模块
history
中,我可以通过以下方式删除查询:const
history
= createBrowserHistory({ queryKey: false });import { Router, Route, hashHistory} from '
react-route
浏览 2
提问于2016-01-21
得票数 2
2
回答
ReactJs: TypeError:无法读取
未定义
属性
“PropTypes”
、
、
我使用的是react路由器v3.2.0,这是我的app.js,错误显示在在线路由器上: PropTypes.object在chrome中,在边缘它显示错误为TypeError:无法获得
未定义
或空引用的
属性
AppExtendedReact.Component中,顺便说一句,我是新手import { Router } from '
react-router
React.Component { static contextTypes
浏览 2
提问于2018-01-23
得票数 1
回答已采纳
3
回答
如何在新的React路由器v4中访问历史记录对象
、
、
所以我让
history
.js看起来像这样我的index.js <Router
history
={
history
}> <Route componente.target.elements[1].value;
浏览 4
提问于2017-03-30
得票数 17
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
React 路由状态管理总结
React 个人学习感悟(四)
关于 React 路由,这些你必须知道!
react-router 4中离开确认自定义
Web前端人员如何实现状态保存 常用方法就什么
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券