Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One file per one component sounds like a better representation of one real world concept using code. It translates 1 to 1.


Then just put all the files for a component into a single folder, which translates 1 to 1. Again, this is all just a matter of preference, and with pre-compilers you could glob all your js/css/html into one file using any framework if you really wanted to. Seems silly to me, but to each their own.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: