While studying some projects I repeatedly find that authors follow a file structure that doesn't make sense to me without context.
For example, for any given component there would be a folder Header. There would be two files, one Header.js, and the other index.js (in the same subfolder). Both would export default const, but the index.js would also import the adjacent Header component.
What is the logic behind this structure?