this.setstate n'est pas défini à l'intérieur d'une fonction asynchrone dans js

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