Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.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_Ionic Framework - Fatal编程技术网

Reactjs 离子无跃迁推动

Reactjs 离子无跃迁推动,reactjs,ionic-framework,Reactjs,Ionic Framework,我正在尝试使用useHistory history.push(`/maintabs/${track?.raceId}/${track?.id}/edition/${poiID}`, {}) 我想做的是在没有转换的情况下导航 有没有一种方法可以实现这一点(比如组件和他的routerDirectionprops?可能是这样的 <IonItem button routerLink="/home"> <IonLabel>Go to HomeP

我正在尝试使用
useHistory

history.push(`/maintabs/${track?.raceId}/${track?.id}/edition/${poiID}`, {}) 
我想做的是在没有转换的情况下导航


有没有一种方法可以实现这一点(比如组件和他的
routerDirection
props?

可能是这样的

 <IonItem button routerLink="/home">
      <IonLabel>Go to HomePage</IonLabel>
 </IonItem>

转到主页
您可以尝试使用或不使用
按钮