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 makzan.net (revised)
Next -> Minimal Homescreen