News for hackers. Stuff that matters.
Re:React/JavaScript fatigue by dev360 on Monday December 28, 2015 @05:43AM (#10800612)
"Two or three files" can also be a terrible idea if a project mushrooms. Nobody wants to wade around 2000 loc files just because its missing tooling, but I can def see your argument.
Re:React/JavaScript fatigue by mbrock on Monday December 28, 2015 @05:49AM (#10800618)
Maybe not. I don't mind, I have incremental search. For me, wading around 200 files in subdirectories is more tedious. But it seems to be a matter of preference.
Re:React/JavaScript fatigue by ebola1717 on Monday December 28, 2015 @01:42PM (#10802600)
We have 1 file per react component, and keep our files down to < 200 loc (and we're still using es5). As long as you define your components before mounting any of them, you don't have to worry too much about dependency order.