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

Yup... don't have side effects in constructors. That's the whole point of other lifecycle methods... this is a practice as old as C++


Please note we are not suggesting side effects in constructors. I’m sorry if my previous comments gave you that impression.

I elaborated here: https://news.ycombinator.com/item?id=16696836


Thanks for the clarification and for pitching in on this thread. FWIW I really appreciate the thought and effort the React team puts into changes.




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

Search: