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

How do you deal with propagating events through the system? If I'm clicking Follow as people are following and unfollowing, how does that number change?


Clicking follow mutates the global app data. Changes to the app data causes the entire application to re-render, and React pushes those changes out to the DOM.

So, to answer your question, we don't propagate events :)




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

Search: