React Tutorial - 12.life cycle -- old version (16)

Опубликовано: 31 Май 2026
на канале: feeco
5
0

1.16 is old version, 16.3/16.4 new version, 16.4 is stable version widely in used.
2.test all hooks at mounting stage
a.constructor
b.componentWillMount
c.render
d.componentDidMount
3.test all hooks at updating stage
a.componentWillReceiveProps
b.shouldComponentUpdate
c.componentWillUpdate
d.render
e.componentDidUpdate
4.test hook at unmounting stage
a.componentWIllUnmount
5.only componentDidMount/render/componentWillUnmount are frequently used.