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

Maybe it's just me, but when I'm working in React it really forces me into a more "modular" way of writing things. Sure, I'll write something as a huge file that's a couple of hundred lines but React makes it _incredibly_ easy to step back and refactor to start pulling things out into modules.

I guess it doesn't quite _force_ you into thinking a certain way, it just encourages writing code in a more modular and reusable way. Refactoring is easy enough to say "yes, I should pull that out into its own component" vs "it would take me a day to pull this out into its own component".



Totally agree with you here. React made me think of the web in a very modular way... I found it very enjoyable to learn!




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

Search: