Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react localstorage

// setter
localStorage.setItem('myData', data);
// getter
localStorage.getItem('myData');
// remove
localStorage.removeItem('myData');
// remove all
localStorage.clear();
Source by www.robinwieruch.de #
 
PREVIOUS NEXT
Tagged: #react #localstorage
ADD COMMENT
Topic
Name
2+8 =