title: Where to put component did mount in my next.js file
body: <p>Halo guys, sorry for this stupid question but where do I put componentDidMount() in my react js document?</p>
  <p>I am trying to insert google analytics script and I found a video on it but I dont know where to put that element. I will give you a screenshot of my file.</p>
  <p>Thank you
  (I know my editor is weird, but visual studio code keeps on crashing)</p>
  <p><a href="https://i.stack.imgur.com/BEvYf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BEvYf.jpg" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/UBrRh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UBrRh.jpg" alt="enter image description here" /></a></p>