News for hackers. Stuff that matters.
Re:React v0.14 by aboodman on Wednesday October 07, 2015 @08:46PM (#10350173)
I generally try to do everything in render(). It almost always works out better. Sometimes I end up needing a lifecycle event. Timers (e.g., for manual animations) end up being hard to model without mount/unmount.
Re:React v0.14 by tracker1 on Wednesday October 07, 2015 @10:09PM (#10350473)
Agreed.. using mount/unmount is the exception to the rule.. I can imagine anything using charting libraries, or any third party rendering library would need to do this for performant controls... but it is definitely the exception to the rule.