【发布时间】:2020-11-05 16:00:06
【问题描述】:
<Link
to={{
pathname: "/studentDetails",
state: {
selectedStudent: studentsData,
},
}}
>
{basicData.studentName}
</Link>
上面的代码是react.js中使用react-router-dom发送带有链接的Objects的例子。目前我正在开发一个 react native 应用程序,为此,我使用 react-router-native(https://reactrouter.com/native/guides/quick-start) 作为我的路由器。以及如何在 react native 中使用此 NPM 包传递带有链接的对象
【问题讨论】:
标签: javascript reactjs react-native react-router-dom react-router-native