跳转到内容

useSessionStorageState

将状态存储在 sessionStorage 中的 Hook 。

用法与 useLocalStorageState 一致。

Source

源码 · 文档 · 示例

基于 MIT 许可发布