1 min readJul 6, 2018
This is what we used to do before we started using the Fractal structure. I felt that maintaining that single line of code is not worthwhile and also Fractal gave it a sense of a tree shape. So we now prefer :
- Login.js
- login/
What you do is perfectly fine. Can be extended to python (or any other language) that has and index.js equivalent for a module (like python’s __init__.py).