I'm a Web Application Developer, 3D Modeler & RC Heli fan. I Work on @slidedeck. My tweets are my own. Favorite podcasts: TWiT, TWiG, TNT, Fourcast.
Things You Can’t do as a PHP Developer
To be super clear, passing object to setState() is not the problem here. The real problem is passing object to setState() when you want to calculate the next state from the previous state. So stop doing this. It’s not safe!
However, it’s not an anti-pattern if you make it clear that the prop is only seed data for the component’s internally-controlled state: