You can assign the current context this
to a variable, also be consistent either use ES5 or ES6.
apiCall(term) {
const params = {
part: 'snippet',
key: APP_KEY,
q: term,
type: 'video'
};
const _this = this;
axios.get(APP_URL, { params: params})
.then((response) => {
_this.setState({
videos: response
});
})
.catch((error) => {
console.error(error);
});
}