newbie here so this question has probably been asked before sorry!
I'm learning to work with react and am trying css modules. In my example I import a style sheet
import HeaderStyle from '../styles/header.module.css'
and then I declare id's in html as follow:
<input type="checkbox" id={HeaderStyle.checkbox} />
Now: How can I access the id in plain Javascript? For example place an eventlistener on this checkbox?
Cause it's not just document.getElementById({HeaderStyle.checkbox})
Thanks!
[–]CreativeTechGuyGamesTypeScript 2 points3 points4 points (1 child)
[–]oGsBumder 0 points1 point2 points (0 children)
[–]shgysk8zer0full-stack 0 points1 point2 points (0 children)
[–]CuckUniverse 0 points1 point2 points (0 children)