i'm trying to use trello-web in react. in the docs it say:
When you have a token, you can do .get, .put, .post and .del, for example:
trello.get('/1/boards').then(console.log)
and everything works fine (with console.log).
But if i want save the response in a variable what i have to change in this line of code to use it in my component?
I dont understand that
.then(console.log)
print in my console and so i cant save it to reuse correctly. If someone help me to understand.. thanks very much :)