Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 422 Bytes

session-storage.md

File metadata and controls

10 lines (7 loc) · 422 Bytes

Session Storage

This feature stores data for components that is persistent across refreshes. You will have access to methods like setItem, getItem, removeItem, clear and keys. Data is automatically synchronized between the React App and the BOS Component.

import { sessionStorage } from 'near-social-bridge'

sessionStorage.setItem('name', 'Wenderson')
sessionStorage.getItem('name') // Wenderson