Makzan / I share what I learnt

Props in getInitialState Is an Anti-Pattern

Link: Props in getInitialState Is an Anti-Pattern

This isn’t really a React-specific tip, as such anti-patterns often occur in code in general; in this case, React simply points them out more clearly.

Good tips on initializing values in constructor. There are difference between initialCount and count.

Published on October 3, 2015. More articles like this: Clip & Quote, ReactJS.

Want productive tips and web technologies links like this in your inbox each week? Sign up for weekly dispatch each week. No spam ever. Just useful content: