3 ms·
One file per one component sounds like a better representation of one real world concept using code. It translates 1 to 1.
by mateuszf 11y ago
One file per one component sounds like a better representation of one real world concept using code. It translates 1 to 1.
- marknutter 11y agoThen 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.