TypeError: Cannot read property 'uploadTaskSnapshot' of undefined at userActions.js:22 at async Object.handleUploadImage [as onClick] (PhotosPage.jsx:49) code example
Example: this.setState is undefined inside a async function in js
.then((res) => this.setState({intentOptions: res.data}));