componentWillMount(): Assigning directly to this.state is deprecatedSee original GitHub issue
Use react-mixin with firstname.lastname@example.org (maybe also in 15.6.x) will output warning:
Warning: XComponent.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component’s constructor). Use setState instead.
Seems https://github.com/brigand/react-mixin/blob/master/index.js#L37-L45 calls
applyInitialState at https://github.com/brigand/react-mixin/blob/master/index.js#L30 calls
instance.state = ...
- Created 6 years ago
- Comments:7 (4 by maintainers)