I know how to declare a global variable in React by using e.g. window.name; however, what I would like to know is why we cannot use that pattern:
In index.js<