Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为我创建某种路由,react-table以便用户打开一行(使用SubComponent)后,URL 应该相应地更改。因此,当用户刷新页面、为其添加书签或将其发送给其他人时,应该展开同一行。
react-table
SubComponent
但是,我没有找到一种方法来指定一行是否打开。
我知道了...
<ReactTable ... defaultExpanded={{ 2: true, }} />