Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

94
Views
What's the way to show the cointop 50 in webpage?
{loading ? (
        <strong>Loading...</strong>
      ) : (
        <ul>
          {coins.map((coin) => (
            <li>
              {coin.name} {coin.symbol} :{" "}
              {Math.round((myMoney / coin.quotes.USD.price) * 100) / 100}
              {"   "}
              {coin.symbol}
              {" can buy!"}
            </li>
          ))}
        </ul>
      )}

This is for React beignner Project,

now this source makes all coin objects return.

i already find how to use javascript statement. but can't find the way.

coin is using other website api(https://api.coinpaprika.com/v1/tickers)

how can i fix this problem?

7 months ago · Juan Pablo Isaza
1 answers
Answer question

0

you can easily use

let startIndex=0;
let endIndex=50;
let coins50 = coins.slice(startIndex, endIndex)

also, you must define paging to show the rest of the data notice: you must keep data to component state

7 months ago · Juan Pablo Isaza Report
Answer question
Find remote jobs