Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window is not define Nextjs

if (typeof window !== 'undefined') {
  // You now have access to `window`
}
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #window #define #Nextjs
ADD COMMENT
Topic
Name
5+2 =