Hacker News new | past | comments | ask | show | jobs | submit login

> I can basically treat the state as a render loop that runs from top to bottom every time.

If you use vue like this. I think you will never use vue properly. In vue, state IS the ui. UI is always direct mapping of state. You setup state, you describe mapping between state and dom. And the rest of things will be maintained by vue. Data is the trust anchor of everything. UI is derived from it and you shouldn't even think about update it yourself.

And vue also makes lots of utils specified to map or handling data change. (Personally I think the most important one is computed, as it is the bridge between the the different form of same state)




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

Search: