React issue
Why The div is not changing its display when the window is loaded

4 Replies
have you tried with
load instead of Load?omg xD it worked
i didn't notice 😄
but what is this error ?

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