Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

localStorage nextjs

/*
	Next JS runs your code twice making using window impossible
    So you can do this
*/

window?.localStorage?.whatever()
 
PREVIOUS NEXT
Tagged: #localStorage #nextjs
ADD COMMENT
Topic
Name
6+5 =