I am very new to the coding world. I am creating a meme generator and fetching data from the api. The below is part of the code, there is a const {memes} to store the data fetched from api, but why do I need it? Why can't I put it like this --> this.setState({allMemeImg: response.data})
componentDidMount(){
fetch("https://api.imgflip.com/get_memes")
.then (response => response.json())
.then (response => {
const {memes} = response.data
this.setState({allMemeImg: memes})
})
}