Re:React on ES6+
by deanclatworthy on Wednesday July 08, 2015 @04:14AM
(#9850400)
Looks to be a nice improvement. The only thing that really bothers me is if they deprecate componentDidMount. I think it's a lot more verbose than using the constructor method, especially given the corresponding componentDidUnmount method still exists. Is there a destructor syntax for ES6?
[ Parent
| on HN ]
The constructor takes the place of componentWillMount. I believe componentDidMount is still used.
Looks like getInitialState is absorbed by the constructor as well.