cost 314 ms
是否有针对 react-router-bootstrap 错误的 LinkContainer 组件的解决方案? - Is there a solution for LinkContainer component from react-router-bootstrap error?

所以我使用 react-router-bootstrap 中的 LinkContainer 组件从引导程序中包装我的 Nav.Link 组件。 请参考下图。 但是我的代码出现此错误:[错误照片][1] [1]:https://i.stack.imgur.com/AF41y.png 顺便说一句,我正 ...

React router bootstrap LinkContainer 返回 TypeError: (0 , _reactRouterDom.withRouter) is not a function - React router bootstrap LinkContainer returns TypeError: (0 , _reactRouterDom.withRouter) is not a function

似乎自从React最近更新以来,与路由相关的所有内容都已更改。 我用LinkContainer从react-router-bootstrap ,但它现在扔 我必须进行哪些更改才能使其正常工作? ...

react-router-bootstrap LinkContainer 组件因 TypeError (0 , _reactRouterDom.withRouter) is not a function 而失败 - react-router-bootstrap LinkContainer component fails with a TypeError (0 , _reactRouterDom.withRouter) is not a function

我一直在使用 **react-router-bootstrap** react 库中的 *​​LinkContainer** 一段时间,但目前它在导入时抛出此错误: TypeError (0 , _reactRouterDom.withRouter) 不是函数 我有很简单的在这个反应应 ...

错误:使用 react-router-bootstrap LinkContainer 时元素类型无效 - Error: Element type is invalid when using react-router-bootstrap LinkContainer

从 react-router-bootstrap 使用 LinkContainer 给了我这个错误: 错误:元素类型无效:应为字符串(对于内置组件)或类/函数(对于复合组件)但得到:对象。 检查Header的渲染方法。 这是 App.js index.js 我在这里添加了一个错误消 ...

导航栏反应路由器与引导程序不起作用 - navbar react router with bootstrap not working

我遇到了 react-router-bootstrap 无法按预期工作的问题,我不知道为什么(它正在另一个项目中工作) URL 当我点击导航栏图标时发生变化(例如,“localhost:3000”用于徽标 img)但它没有找到要显示的组件,所以它不会改变组件。 当我在 url 栏中输入 local ...

React-Router URL 在链接单击时导致组件重新安装(使用 useEffect(..)、[] 重新初始化) - React-Router URL Causes Component Re-Mount (Re-Initialization with useEffect(..), []) on Link Click

我遇到了这里也提到的一个问题, React-Router re-mounts component on route change ,但没有任何解决方案。 如果我有一个指向由 react-router 管理的react-router的链接(或在我的情况下react-router-bootstrap ...

构建导航栏,我收到此错误 Element type is invalid: expected a string (for built-in components) or a class/function for complex components - Building navbar and I get this error Element type is invalid: expected a string (for built-in components) or a class/function for composite components

我正在为一个项目构建一个导航栏,上面的消息告诉我检查我的 header 组件中的渲染方法。 我已经尝试了我能想到的一切,包括在这里查看答案。 具体来说,我尝试在我的 App 组件和 index.js 文件之间移动 Header 组件不确定我是否需要休息或其他什么,但无论如何,这是我的 header ...

如何使用 react-router-dom 和 react-router-bootstrap 避免 hash 登录 URL? - How to avoid hash sign in URL, using react-router-dom and react-router-bootstrap?

我使用react-router-dom中的<Route />进行路由,使用react-bootstrap + react-router-bootstrap中的Nav + LinkContainer进行导航: 这将创建一个 URL ,其中包含 hash 登录,例如: 这是哪里来的,有什么 ...

在新的 window 中打开的反应导航栏菜单项 - React navigation bar menu item that opens in a new window

在我的 React 应用程序中,我正在尝试添加一个导航菜单项,该菜单项在新浏览器 window 中打开。 我知道这似乎是一种奇怪的方法,因为如果它带你到一个新的 window,它就不是导航。 但目标是让菜单选项出现在所有应用程序的页面上,导航栏的 rest。 我目前正在使用 react-bootst ...

无法从一台服务器到另一台服务器进行请求-“错误:请求失败,状态码为401” - Uable to make a req from one server to another - “Error: Request failed with status code 401”

我正在尝试从一台服务器(localhost:3000)到另一台服务器(localhost:3001)进行api req,但是我收到身份验证错误401。 注意:如果我对身份验证令牌进行了硬编码,则可以发出请求。这使我得出结论,我没有以正确的方式设置axios身份验证标头。 apiFil ...

在React Bootstrap Navbar下渲染React组件 - React component gets rendered under react bootstrap Navbar

我是新手,我正在尝试使用React-bootstrap实现Navbar,它将导航到另一个页面而不刷新浏览器。 为了阻止页面刷新,我使用了react-router-bootstrap的LinkContainer组件。 当我单击导航栏中的“计算器”链接时,将渲染计算器页面,但它位于导航栏 ...

在移动设备上选择NavItem时,Nav不会崩溃 - Nav not collapsing when a NavItem is selected on mobile devices

我正在构建一个导航栏,该导航栏在切换到移动设备时会响应。 换句话说,在移动时折叠,然后在选择/单击导航按钮时,应将其路由到路径,并将所有导航菜单折叠到切换样式栏。 但是,下面是我得到的快照及其相关代码: 码: 我还集成了一些解决方案react-bootstrap如何使用导 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM