React issue

Why The div is not changing its display when the window is loaded
4 Replies
Jochem
Jochem•2y ago
have you tried with load instead of Load?
MuhammedAlaa
MuhammedAlaaOP•2y ago
omg xD it worked i didn't notice 😄
MuhammedAlaa
MuhammedAlaaOP•2y ago
but what is this error ?
Jochem
Jochem•2y ago
preLoader.current is null. I assumed that is some kind of React syntax, but in plane vanilla javascript I'd assume you'd need to do preLoader.style instead of preLoader.current.style

Did you find this page helpful?