Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window is not defined Next Js

if (typeof window !== 'undefined') {
  // Boom
}
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #window #defined #Next #Js
ADD COMMENT
Topic
Name
3+9 =