Free-to-Play Games Database

무료
분류별 Digiwalls Media | 업데이트됨 il y a 7 jours | Gaming
인기

9.8 / 10

지연 시간

447ms

서비스 수준

99%

Health Check

N/A

모든 토론으로 돌아가기

limit?

How can I make a map with a limit of 10 games?

Rapid account: Coding By Gopal
CodingByGopal Commented il y a 2 ans

const indexOfLastGameInList = currentPage * gameItemPerPage;
const indexOfFirstGameInList = indexOfLastGameInList - gameItemPerPage;
const currentGameList = results.slice(
indexOfFirstGameInList,
indexOfLastGameInList
);

// then use map

{currentGameList.map((data) => {return <li>{data.xyz}</li>,}

Rapid account: Cpinopacheco 64
cpinopacheco64 Commented il y a 2 ans

I would like to know the same, I am looking for the option to bring a certain amount of elements. How can that be done?

Rapid account: Frandepaulo 23 Kixps GD Tq U 8
frandepaulo23-kixpsGDTqU8 Commented il y a 3 ans

I am trying to render in the DOM only 10 games of the more than 400 that are in the api…
some APIs can be assigned something like freetogame.com/api/games?limits=10 or api/games?results=10
does this api have that option?

Rapid account: Digiwalls
digiwalls Commented il y a 3 ans

What you trying to do exactly?

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입