1 min readDec 9, 2018
Hi Sagar,
I personally don’t write external style sheets and use a top-level folder for tests. So for me, it’d be something like:
|- src/
|-- pages/
|--- Login.js
|--- login/
|---- LoginModal.js
|- test/
|-- pages/
|--- Login.spec.js
|--- login/
|---- LoginModal.spec.js
But I don’t see any problem with your approach either.
Except you introduced another rule: In Fractal, only JS files can be at the root node, everything else is a child. In your modified version, JS files, spec files and css files can be the root node. As long as you follow the pattern, I feel it’s OK.