Y
Hacker News
new
|
ask
|
show
|
jobs
by
wayfarer2s
3348 days ago
> when you actually want to know when the component was put into the DOM
You can use componentDidMount for that and its semantics are still the same.
2 comments
danabramov
3348 days ago
Yes, componentDidMount is the place to work with DOM. componentWillMount never worked this way—it is basically a glorified constructor from pre-ES6 era.
link
madeofpalk
3348 days ago
Oh apologies - I really the comment as componentDidMount. My bad.
link