Hacker News new | ask | show | jobs
by lewisl9029 3079 days ago
Agreed that having a bunch of index.jsx files is super annoying. Though I prefer to just create a `./ComponentName.jsx` file on the same level as the `./ComponentName/` folder instead.

You can still import it as `./ComponentName` as you would with having `index.jsx` inside the folder. Best of both worlds, IMO.