How can i change the font-family with api using axios.get?

Viewed 38

im trying to change my string's font-family from a dropdown button. but i couldnt reach my apis' font family from this api. I can only see the list in my console. How can i see the family in my console ? Here is my code;

const axiosText = () => {

    axios.get('https://apiv2.popupsmart.com/api/googlefont')
    .then(resp => {
      console.log(resp.data);
      
    });
  }

my console looks like this

0 Answers
Related