1const api = `your api here`
2axios.get(api, { headers: {"Authorization" : `Bearer ${token}`} })
3 .then(res => {
4 console.log(res.data);
5 this.setState({
6 items: res.data, /*set response data in items array*/
7 isLoaded : true,
8 redirectToReferrer: false
9 })