this.setState no está definido dentro de una función asíncrata en js

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