1 min readJun 15, 2019
Ah, I see. It’s still not react, however. window is the global object in a browser, so we don’t have to reference it directly. It’s just a feature of JavaScript in a browser environment (in node, for example, this would not be accessible even with react)