this.setState jest niezdefiniowany w funkcji asynchronicznej w JS

.then((res) => this.setState({intentOptions: res.data}));
Funny Fowl