title: Next.js: Add 'style' to element in event-listener
body: <p>As in the title descriped, i tray to add style to an dom-element in nexts.js Typescript and i get &quot;Property 'style' does not exist on type 'Element' &quot; message in Visual Studio Code. I cant figure out what is the problem and via google search i cant get to the answwer. Maybe because i dont understand the problem, so its really hard to say if i  ask the right question...</p>
  <p>Some can give me a hint?</p>
  <p><a href="https://i.stack.imgur.com/5Zoec.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Zoec.png" alt="enter image description here" /></a></p>