Inscripts interview question

can this.setState be usable in componentDidMount