Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

useEffect in nextjs

import { useEffect } from 'react'

useEffect(() => {
  // You now have access to `window`
}, [])

// NextJs code.....
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #useEffect #nextjs
ADD COMMENT
Topic
Name
7+6 =