Free-to-Play Games Database

免费
通过 Digiwalls Media | 已更新 एक दिन पहले | Gaming
人气

9.8 / 10

延迟

1,264ms

服务等级

99%

Health Check

N/A

返回所有讨论

limit?

Rapid account: Frandepaulo 23 Kixps GD Tq U 8
frandepaulo23-kixpsGDTqU8
3 वर्ष पहले

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

Rapid account: Coding By Gopal
CodingByGopal Commented 2 वर्ष पहले

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 2 वर्ष पहले

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 3 वर्ष पहले

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 3 वर्ष पहले

What you trying to do exactly?

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论