componentWillMount

open fun componentWillMount(): dynamic

Deprecated (with error)

Use 'componentDidMount' instead

Replace with

componentDidMount