While exploring examples from Apollo Client, I recently discovered a practice of placing all import statements at the bottom of a .js file. This seems like a clever idea because usually, when opening a file, import statements are not the primary focus.
If the order does not matter in certain cases, is there any drawback we should consider with this approach?
It appears that this practice might be limited to examples only, as the same company places imports at the top in production code. However, it's unclear why this couldn't be applied to production code as well. We are using TypeScript, but I believe the concerns are similar with vanilla ES6.