I am receiving data from an external api in React
I have an object
lend_rates = {
bitfinex : 1.2,
blockfi : 2.3,
celsius : 3,
coinlist : 1.5
}
I am trying to map through it so i can render the data i.e it shows on the screen "bitfinex : 1.2, blockfi : 2.3, etc"
  metrics.lend_rates.map((rate, i)=>{
        return(
          <div key={i}>
            {rate.key} : {rate.value}
          </div>
        )
      })
but im gettin an error saying its not a function.
What am i doing wrong?
 
     
    