# React

**URL:** https://forum.codewithmosh.com/c/react/8.md?page=3

[Latest](https://forum.codewithmosh.com/latest.md) · [Categories](https://forum.codewithmosh.com/categories.md)

**Page:** 4

---

## [Deploying react project (Rawg.io)](https://forum.codewithmosh.com/t/deploying-react-project-rawg-io/27634)

<div class="topic-metadata">

**Author:** [@Yarin](https://forum.codewithmosh.com/u/Yarin)\
**Replies:** 1\
**Last updated:** [July 13, 2024, 1:25am UTC](https://forum.codewithmosh.com/t/deploying-react-project-rawg-io/27634 "2024-07-13T01:25:31Z")

</div>

“I followed Mosh’s step-by-step guide for deploying the project with Vercel, but I am getting a 404 error. The project works with the npm run dev command, by the way. Could someone explain why the deployment didn’t succe…

---

## [Local JSON with nested arrays in Typescript/React](https://forum.codewithmosh.com/t/local-json-with-nested-arrays-in-typescript-react/27602)

<div class="topic-metadata">

**Author:** [@PerpetualDawn](https://forum.codewithmosh.com/u/PerpetualDawn)\
**Replies:** 2\
**Last updated:** [July 11, 2024, 3:42pm UTC](https://forum.codewithmosh.com/t/local-json-with-nested-arrays-in-typescript-react/27602 "2024-07-11T15:42:48Z")

</div>

Hi, I’ve been learning React and TS from Mosh’s excellent tutorial for a hobby project I am working on. The project is a list builder for a game - Where you make selections based on what you want to play and build a ro…

---

## [The provided mongoose instance is invalid](https://forum.codewithmosh.com/t/the-provided-mongoose-instance-is-invalid/27488)

<div class="topic-metadata">

**Author:** [@suheiromari](https://forum.codewithmosh.com/u/suheiromari)\
**Replies:** 3\
**Last updated:** [July 5, 2024, 5:03pm UTC](https://forum.codewithmosh.com/t/the-provided-mongoose-instance-is-invalid/27488 "2024-07-05T17:03:46Z")

</div>

This error shows when I run node index.js

---

## [Vitest: TypeError: response.body.getReader is not a function](https://forum.codewithmosh.com/t/vitest-typeerror-response-body-getreader-is-not-a-function/27479)

<div class="topic-metadata">

**Author:** [@eng\_mrms](https://forum.codewithmosh.com/u/eng_mrms)\
**Replies:** 0\
**Last updated:** [July 4, 2024, 10:46am UTC](https://forum.codewithmosh.com/t/vitest-typeerror-response-body-getreader-is-not-a-function/27479 "2024-07-04T10:46:28Z")

</div>

Hi, Could you please help me in the issue where i am stuck in the Mocking API section, the test snippet: describe(“ProductList”, () =\> { it(“should render products list”, async () =\> { render(); const items = aw…

---

## [Course is blank](https://forum.codewithmosh.com/t/course-is-blank/27443)

<div class="topic-metadata">

**Author:** [@hermankayy](https://forum.codewithmosh.com/u/hermankayy)\
**Replies:** 1\
**Last updated:** [July 2, 2024, 8:09pm UTC](https://forum.codewithmosh.com/t/course-is-blank/27443 "2024-07-02T20:09:47Z")

</div>

Whenever I tap on the react+typescript course in my acc it just shows a blank page. Please help!

---

## [Error using Joi-browser library](https://forum.codewithmosh.com/t/error-using-joi-browser-library/14165)

<div class="topic-metadata">

**Author:** [@AlmTalal](https://forum.codewithmosh.com/u/AlmTalal)\
**Replies:** 8\
**Last updated:** [July 2, 2024, 1:12am UTC](https://forum.codewithmosh.com/t/error-using-joi-browser-library/14165 "2024-07-02T01:12:55Z")

</div>

Hello! I’m doing the react course, but I am getting an error when I use the Joi-browser library. The error is this : Could not find a declaration file for module ‘joi-browser’. ‘C:/Users/almta/OneDrive/Escritorio/vidly-…

---

## [Deep Dive into React Hook Forms](https://forum.codewithmosh.com/t/deep-dive-into-react-hook-forms/27400)

<div class="topic-metadata">

**Author:** [@AntonM](https://forum.codewithmosh.com/u/AntonM)\
**Replies:** 0\
**Last updated:** [June 29, 2024, 4:07am UTC](https://forum.codewithmosh.com/t/deep-dive-into-react-hook-forms/27400 "2024-06-29T04:07:11Z")

</div>

Hi there After doing the intermidiate course i found react query and would like to deep dive more into it and react hook forms. I found another turorial on building reusable components using react hook form controllers…

---

## [Question on storing Rawg API key](https://forum.codewithmosh.com/t/question-on-storing-rawg-api-key/27325)

<div class="topic-metadata">

**Author:** [@Beau\_EM](https://forum.codewithmosh.com/u/Beau_EM)\
**Replies:** 1\
**Last updated:** [June 24, 2024, 9:37pm UTC](https://forum.codewithmosh.com/t/question-on-storing-rawg-api-key/27325 "2024-06-24T21:37:47Z")

</div>

Within the video game react project, it is a little unclear how we should be storing our API keys. To my understanding, the best way to store the API key for the Rawg React project is: -Store API key in .env file -add …

---

## [React intermidiate course](https://forum.codewithmosh.com/t/react-intermidiate-course/26957)

<div class="topic-metadata">

**Author:** [@AntonM](https://forum.codewithmosh.com/u/AntonM)\
**Replies:** 5\
**Last updated:** [June 24, 2024, 8:48pm UTC](https://forum.codewithmosh.com/t/react-intermidiate-course/26957 "2024-06-24T20:48:28Z")

</div>

Having a issue on the usePosts hooks. 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. in the end…

---

## [React,Fetching data](https://forum.codewithmosh.com/t/react-fetching-data/27303)

<div class="topic-metadata">

**Author:** [@Razieh](https://forum.codewithmosh.com/u/Razieh)\
**Replies:** 3\
**Last updated:** [June 23, 2024, 5:19pm UTC](https://forum.codewithmosh.com/t/react-fetching-data/27303 "2024-06-23T17:19:56Z")

</div>

Hi I am studying the react course and learning the catching process. I code a form like this: then I code a list by fetching from a website and I want to add the information that is written on the form to the fetchi…

---

## [There is a problem with filtering by platform in the course](https://forum.codewithmosh.com/t/there-is-a-problem-with-filtering-by-platform-in-the-course/27200)

<div class="topic-metadata">

**Author:** [@Stevekevin](https://forum.codewithmosh.com/u/Stevekevin)\
**Replies:** 1\
**Last updated:** [June 16, 2024, 10:55pm UTC](https://forum.codewithmosh.com/t/there-is-a-problem-with-filtering-by-platform-in-the-course/27200 "2024-06-16T22:55:46Z")

</div>

in the ciourse when mosh does the filtering for ios , it return also game not having ios platform. i mean in this video.

---

## [Why the skeleton text is not working in my project](https://forum.codewithmosh.com/t/why-the-skeleton-text-is-not-working-in-my-project/26919)

<div class="topic-metadata">

**Author:** [@Hamza-Noah](https://forum.codewithmosh.com/u/Hamza-Noah)\
**Replies:** 5\
**Last updated:** [June 15, 2024, 7:58pm UTC](https://forum.codewithmosh.com/t/why-the-skeleton-text-is-not-working-in-my-project/26919 "2024-06-15T19:58:03Z")

</div>

why the skeleton text is not working in my project here is the live demo https://game-k2hu2651r-hamza-nouhs-projects.vercel.app/ and here is the link of the code in a github repository

---

## [React Begginer Course](https://forum.codewithmosh.com/t/react-begginer-course/27186)

<div class="topic-metadata">

**Author:** [@i2bgilberto](https://forum.codewithmosh.com/u/i2bgilberto)\
**Replies:** 2\
**Last updated:** [June 15, 2024, 6:59pm UTC](https://forum.codewithmosh.com/t/react-begginer-course/27186 "2024-06-15T18:59:41Z")

</div>

Hello i’m doing the course and the API on Rawg.io is down is there another way to continue with the course???

---

## [queryClient.setQueryData type is not correct](https://forum.codewithmosh.com/t/queryclient-setquerydata-type-is-not-correct/27127)

<div class="topic-metadata">

**Author:** [@syedrizvi](https://forum.codewithmosh.com/u/syedrizvi)\
**Replies:** 0\
**Last updated:** [June 9, 2024, 7:16pm UTC](https://forum.codewithmosh.com/t/queryclient-setquerydata-type-is-not-correct/27127 "2024-06-09T19:16:59Z")

</div>

Hello, I’m attempting to perform a setQueryData\<Todo\>(\[‘todos’\], (todo) =\> … Update by watching the video. For some reason however my todo type is InfiniteData\<ToDo\> and it has a pages and pageParams props. I set my new…

---

## [Embark on Your React Intermediate Course](https://forum.codewithmosh.com/t/embark-on-your-react-intermediate-course/27064)

<div class="topic-metadata">

**Author:** [@henryq](https://forum.codewithmosh.com/u/henryq)\
**Replies:** 0\
**Last updated:** [June 4, 2024, 10:57am UTC](https://forum.codewithmosh.com/t/embark-on-your-react-intermediate-course/27064 "2024-06-04T10:57:18Z")

</div>

Welcome to our React Intermediate Course forum, where we not only delve into the intricacies of React but also provide invaluable assistance for your do my dissertation uk needs! Our expert team offers comprehensive supp…

---

## [React Intermediate course, Detail page](https://forum.codewithmosh.com/t/react-intermediate-course-detail-page/26817)

<div class="topic-metadata">

**Author:** [@fdm89](https://forum.codewithmosh.com/u/fdm89)\
**Replies:** 2\
**Last updated:** [June 2, 2024, 9:55pm UTC](https://forum.codewithmosh.com/t/react-intermediate-course-detail-page/26817 "2024-06-02T21:55:16Z")

</div>

Hello guys I am facing a bug with both my code and mosh code in the game platform project. The bug is that every time i visit the detail page of a game a get an error and I don t see the content but if I go back and I tr…

---

## [Can some one please tell me why I am getting this error](https://forum.codewithmosh.com/t/can-some-one-please-tell-me-why-i-am-getting-this-error/27034)

<div class="topic-metadata">

**Author:** [@faridi](https://forum.codewithmosh.com/u/faridi)\
**Replies:** 2\
**Last updated:** [June 2, 2024, 12:05pm UTC](https://forum.codewithmosh.com/t/can-some-one-please-tell-me-why-i-am-getting-this-error/27034 "2024-06-02T12:05:27Z")

</div>

---

## [I want to learn react native](https://forum.codewithmosh.com/t/i-want-to-learn-react-native/27001)

<div class="topic-metadata">

**Author:** [@Sinan](https://forum.codewithmosh.com/u/Sinan)\
**Replies:** 0\
**Last updated:** [May 30, 2024, 5:18pm UTC](https://forum.codewithmosh.com/t/i-want-to-learn-react-native/27001 "2024-05-30T17:18:20Z")

</div>

what to do?what to do?what to do?what to do?what to do?what to do?what to do?

---

## [Building a website like codewithmosh.com](https://forum.codewithmosh.com/t/building-a-website-like-codewithmosh-com/2283)

<div class="topic-metadata">

**Author:** [@Abdullah](https://forum.codewithmosh.com/u/Abdullah)\
**Replies:** 2\
**Last updated:** [May 1, 2024, 11:36pm UTC](https://forum.codewithmosh.com/t/building-a-website-like-codewithmosh-com/2283 "2024-05-01T23:36:40Z")

</div>

Building a website like codewithmosh.com My greetings to you all, This is my first post in the forum. I have taken Mosh’s React and Node courses. I want to try build a website like codewithmosh.com to try ability and…

---

## [React or NEXT js - advice needed](https://forum.codewithmosh.com/t/react-or-next-js-advice-needed/26917)

<div class="topic-metadata">

**Author:** [@rongenevieve](https://forum.codewithmosh.com/u/rongenevieve)\
**Replies:** 0\
**Last updated:** [May 25, 2024, 11:47am UTC](https://forum.codewithmosh.com/t/react-or-next-js-advice-needed/26917 "2024-05-25T11:47:22Z")

</div>

Hey, I want to build a project that will use full client-side encryption, but I want to make it(the project) so it will have encryption part of the application on the client(react, no server-side whatsoever) and the res…

---

## [Can you please add Authentication and Authorization](https://forum.codewithmosh.com/t/can-you-please-add-authentication-and-authorization/26841)

<div class="topic-metadata">

**Author:** [@bhattakshay](https://forum.codewithmosh.com/u/bhattakshay)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 2:30am UTC](https://forum.codewithmosh.com/t/can-you-please-add-authentication-and-authorization/26841 "2024-05-22T02:30:42Z")

</div>

Hi, Can you please add Autentication and Authorization module to React18 for Beginners tutorial? It will be very helpful

---

## [Vitest unable to find role "option"](https://forum.codewithmosh.com/t/vitest-unable-to-find-role-option/26825)

<div class="topic-metadata">

**Author:** [@Xanderie](https://forum.codewithmosh.com/u/Xanderie)\
**Replies:** 0\
**Last updated:** [May 20, 2024, 11:48pm UTC](https://forum.codewithmosh.com/t/vitest-unable-to-find-role-option/26825 "2024-05-20T23:48:44Z")

</div>

I’m doing the React Testing Library course. While working on the 2nd section, 14th item “Working with Component Libraries” my code fails when trying to test all the “options” from the drop down. The error message I get …

---

## [How to show reporting in react and next js](https://forum.codewithmosh.com/t/how-to-show-reporting-in-react-and-next-js/26833)

<div class="topic-metadata">

**Author:** [@sachin](https://forum.codewithmosh.com/u/sachin)\
**Replies:** 0\
**Last updated:** [May 21, 2024, 11:42am UTC](https://forum.codewithmosh.com/t/how-to-show-reporting-in-react-and-next-js/26833 "2024-05-21T11:42:18Z")

</div>

I want to show the report viewer and designer in my next JS application like below mention but I did not find any way please help me.

---

## [Nextjs 13 part 1 Authentication with callback error](https://forum.codewithmosh.com/t/nextjs-13-part-1-authentication-with-callback-error/22933)

<div class="topic-metadata">

**Author:** [@Still](https://forum.codewithmosh.com/u/Still)\
**Replies:** 8\
**Last updated:** [May 20, 2024, 1:56pm UTC](https://forum.codewithmosh.com/t/nextjs-13-part-1-authentication-with-callback-error/22933 "2024-05-20T13:56:17Z")

</div>

I have gotten stuck at the Authentication part when ever i try to login with google it says i should try another account. I have restart the server most times still not working. Then i used github authentication and it w…

---

## [React Testing Library: screen.debug() failing the test](https://forum.codewithmosh.com/t/react-testing-library-screen-debug-failing-the-test/26632)

<div class="topic-metadata">

**Author:** [@react\_junkie](https://forum.codewithmosh.com/u/react_junkie)\
**Replies:** 0\
**Last updated:** [May 13, 2024, 2:34am UTC](https://forum.codewithmosh.com/t/react-testing-library-screen-debug-failing-the-test/26632 "2024-05-13T02:34:50Z")

</div>

Hi there, In the React Testing course, the very first test which Mosh write, has the following code: import { it, expect, describe } from 'vitest' import { render, screen } from '@testing-library/react'; import Greet f…

---

## [React / NextJS - Anonymous Sessions / global data](https://forum.codewithmosh.com/t/react-nextjs-anonymous-sessions-global-data/23800)

<div class="topic-metadata">

**Author:** [@JerryHobby](https://forum.codewithmosh.com/u/JerryHobby)\
**Replies:** 4\
**Last updated:** [May 11, 2024, 12:36pm UTC](https://forum.codewithmosh.com/t/react-nextjs-anonymous-sessions-global-data/23800 "2024-05-11T12:36:00Z")

</div>

My goal is to use a client component to capture the IP and userAgent information. I have that working now. But it only works on a client component. My server components need to know this information as well. Can I pu…

---

## [Localhost problems](https://forum.codewithmosh.com/t/localhost-problems/21380)

<div class="topic-metadata">

**Author:** [@jjvidal](https://forum.codewithmosh.com/u/jjvidal)\
**Replies:** 3\
**Last updated:** [May 7, 2024, 5:42am UTC](https://forum.codewithmosh.com/t/localhost-problems/21380 "2024-05-07T05:42:48Z")

</div>

Hi friends, i tried everything to fix the localhost not showing what i do on the project , can you help me? i desabilitate the extensions, i call mcaffe has nothing to do with it, the dev dependences there´s no serius wa…

---

## [Rawg.io is not responding](https://forum.codewithmosh.com/t/rawg-io-is-not-responding/26424)

<div class="topic-metadata">

**Author:** [@Kungfu90](https://forum.codewithmosh.com/u/Kungfu90)\
**Replies:** 3\
**Last updated:** [May 6, 2024, 1:48pm UTC](https://forum.codewithmosh.com/t/rawg-io-is-not-responding/26424 "2024-05-06T13:48:45Z")

</div>

It looks like the rawg.io website is not working properly, My api key is not accessibile and the result is that I can’t display the data

---

## [Display more games](https://forum.codewithmosh.com/t/display-more-games/26433)

<div class="topic-metadata">

**Author:** [@Kungfu90](https://forum.codewithmosh.com/u/Kungfu90)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 8:01am UTC](https://forum.codewithmosh.com/t/display-more-games/26433 "2024-05-06T08:01:31Z")

</div>

What if I want to display more than 10 games. Currently it is displaying a few of them. Just 20 cards are visible

---

## [Vitest + React + Redux](https://forum.codewithmosh.com/t/vitest-react-redux/26410)

<div class="topic-metadata">

**Author:** [@raedgeorge](https://forum.codewithmosh.com/u/raedgeorge)\
**Replies:** 0\
**Last updated:** [May 4, 2024, 6:37pm UTC](https://forum.codewithmosh.com/t/vitest-react-redux/26410 "2024-05-04T18:37:58Z")

</div>

when I submit a form in a Component, I call dispatch action using Redux. how to mock and verify that this action has been called/mocked while testing the component many thanks.

[Previous page](https://forum.codewithmosh.com/c/react/8.md?page=2)

[Next page](https://forum.codewithmosh.com/c/react/8.md?page=4)
