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

When you start tracking state in the DOM, you start having to be very imperative on what gets updated as state changes.

For example, if you have a search application and you want to paginate results, you can get pretty far with vanilla js, but you have to evoke changes based on events which is hard to scale beyond one person rolling their own code.

This is a lot nicer with frameworks because you can be less explicit on which elements get updated and rather describe changes in state with elements "subscribing" to these state changes. Furthermore, these frameworks have conventions to follow that makes things consistent which is nice for teams.

I tend to use jQuery for things that require basic JS interactions, but when there are things that require very scoped JS state with a complex set of interactions, I will defer to Vue.js.



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

Search: