要重定向到其他组件,我必须单击按钮两次才能使其工作

问题描述 投票:0回答:1

我有一个存在主义问题!我不明白为什么当我想重定向到组件中的其他页面时,我必须单击按钮两次才能正常工作!代码工作正常!正是这个细节,我必须单击按钮两次才能使重定向起作用。我预先感谢您提供的帮助:)!

These are the variables that I have defined This is where I connect to the backend to search and send the data I need This is where I do the redirection. and this is where I have the interface of my component, I used bootstrap 5 to speed up the process.

reactjs react-bootstrap
1个回答
0
投票

请不要发布图片,我们中的一些人无法访问这些资源,因为我们位于限制性代理后面。建议将代码附加为代码片段。

© www.soinside.com 2019 - 2024. All rights reserved.