# React intermidiate course

**URL:** <https://forum.codewithmosh.com/t/react-intermidiate-course/26957>\
**Category:** React\
**Created:** [May 28, 2024, 5:40am UTC](https://forum.codewithmosh.com/t/react-intermidiate-course/26957 "2024-05-28T05:40:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonM](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@AntonM](https://forum.codewithmosh.com/u/AntonM)\
**Post date:** [May 28, 2024, 5:40am UTC](https://forum.codewithmosh.com/t/react-intermidiate-course/26957/1 "2024-05-28T05:40:05Z")

</div>

Having a issue on the usePosts hooks.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/1/1a6a93e49f060db6734611a67eb4b88f8a3153ba.png)

struggled with it for a while then thought ill download the source files and just have a look where i went wrong but the finsihed source files have the same issue.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/6/6902ec513ecff2d1097866b926a2eb54dcb88d9f.png)

in the end i landed up with this

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/8/816982aab78ff72258aa379efcd61d3f08e0a0de.png)

---

<div class="post-metadata">

**Author:** ![sufian.babri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sufian.babri/32/1028_2.png) [@sufian.babri](https://forum.codewithmosh.com/u/sufian.babri)\
**Post date:** [June 1, 2024, 12:47am UTC](https://forum.codewithmosh.com/t/react-intermidiate-course/26957/2 "2024-06-01T00:47:41Z")

</div>

Instead of declaring `pageParam` be of type `any`, set it to type `number` like so:

```auto
pageParam: number;

```

You should avoid `any` as much as possible.

---

<div class="post-metadata">

**Author:** ![Borngreat](https://avatars.discourse-cdn.com/v4/letter/b/90ced4/32.png) [@Borngreat](https://forum.codewithmosh.com/u/Borngreat)\
**Post date:** [June 4, 2024, 8:40am UTC](https://forum.codewithmosh.com/t/react-intermidiate-course/26957/3 "2024-06-04T08:40:18Z")

</div>

Please which API did you use for the React Course part 1

---

<div class="post-metadata">

**Author:** ![AntonM](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@AntonM](https://forum.codewithmosh.com/u/AntonM)\
**Post date:** [June 6, 2024, 1:21pm UTC](https://forum.codewithmosh.com/t/react-intermidiate-course/26957/4 "2024-06-06T13:21:19Z")

</div>

I used the one from Rawg but it was a struggle to get it working

---

<div class="post-metadata">

**Author:** ![marianods](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/marianods/32/8311_2.png) [@marianods](https://forum.codewithmosh.com/u/marianods)\
**Post date:** [June 12, 2024, 2:45pm UTC](https://forum.codewithmosh.com/t/react-intermidiate-course/26957/5 "2024-06-12T14:45:36Z")

</div>

You should avoid any always. lol

---

<div class="post-metadata">

**Author:** ![polcia65](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@polcia65](https://forum.codewithmosh.com/u/polcia65)\
**Post date:** [June 24, 2024, 8:48pm UTC](https://forum.codewithmosh.com/t/react-intermidiate-course/26957/6 "2024-06-24T20:48:28Z")

</div>

Salam Sufian Bhai, thori help chahye apki please. Is there anyway I can send you inbox? or you fb link?
