Makzan / I share what I learned

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 2015-10-03. More articles like this:
- Clip & Quote
- ReactJS

Previous <- Cron build (revised)
Next -> Minimal Homescreen

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: