Shivek Khurana
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).

--

--

Shivek Khurana
Shivek Khurana

Written by Shivek Khurana

🏋🏻‍♂️ Founder — Building Meta Blocks — The NFT evolution protocol | 🔫 Talks about 📜 code, 🏛 crypto, 🕸 web3 and 🪖 ed-tech | 👼🏼 Angel Investor | W

No responses yet