Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get window object in nextjs

componentDidMount() {
   console.log('window.innerHeight', window.innerHeight);
}

this not work in next js
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #window #object #nextjs
ADD COMMENT
Topic
Name
3+6 =