reactjs Questions

8

Solved

When i try to deploy my react app to github pages with the package gh-pages, the result page is blank.result page The page I am trying to deploy is here: LINK I don't know if it matters but I am cu...
Unhitch asked 21/11, 2022 at 12:24

5

Solved

Im using NextJs 13 and redux toolkit. When i try the npm run build command, i get this error: Cannot destructure property 'store' of 'useReduxContext(...)' as it is null. I think this has something...
Woolfolk asked 16/2, 2023 at 15:21

5

Solved

i was containerizing my .Net + React.js application but during the process I have encountered an unexpected error. I got myself acquainted with similar posts but none of the solutions solved my pro...
Squamous asked 14/12, 2021 at 21:58

3

I've set up a docker configuration to run my React app, but when starting the container, I encounter the following error: frontend-1 | failed to load config from /app/vite.config.ts frontend-1 | er...
Duroc asked 16/4 at 18:35

6

I am looking to solve a recent problem of mine in a React Native TypeScript application, ran with Expo compiler. Here is my full stack trace: non-std C++ exception ABI48_0_0RCTFatal ABI48_0_0RCTCo...
Livestock asked 31/5, 2023 at 16:10

2

Solved

I'm pretty new to ReactJS, but I'm slowly getting behind it. I want to create a smart component, it should detect if it is "inside" another component and render differently then. Example: <Me...
Concussion asked 5/11, 2015 at 10:8

5

When I add routing with React Router to my React app, it throws error and shows warning: Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could ...
Overwrite asked 15/7, 2022 at 14:11

3

Solved

I'm trying to figure out how to use this.props.dispatch(change) in order use one field selector value to update another fields value within a FieldArray. https://codesandbox.io/s/2p7k7jn930 I can...
Philina asked 4/4, 2018 at 16:38

2

First of all here is my code in react import { useFormState, useFormStatus } from 'react-dom' import { submitAction } from './action.ts' export default function Calculator() { const [result, subm...
Mantelletta asked 14/1 at 18:0

4

Solved

I tried searching on stack overflow and google but found no article that could help me. It shows a paused video even though i have used autoplay. Can anyone please help me ? I'm new to react.js im...
Runnerup asked 20/10, 2017 at 8:34

2

I am absolutely desperate with this problem. I fully understand the concept of mobile-first and have been able to make the layout of my website responsive, however, the font-size does not change wh...
Vaginate asked 31/12, 2021 at 10:46

5

I use Chakra UI and I have several Toast components in my application. They have a blue background color by default since they have status="info". How can I change the background color of...
Ostracoderm asked 11/10, 2021 at 19:19

3

I am trying to make hover effect with react hooks I wrote function to hover based on some tutorials function useHover() { const [hovered, setHovered] = useState(false); const ref = useRef(nul...
Scrip asked 2/5, 2020 at 16:24

6

Solved

I am trying to do a simple animation using React, keyframes, CSS modules (and SASS). The problem is that CSS Modules hash keyframe names the same way it hashes the local classes. JS code //... ...
Physicist asked 24/8, 2019 at 0:59

4

I am working on a react native chat app, and I would like to use openai api to implement auto replying. There is stream available from openai's api, but it uses SSE, which seems not working well in...
Sunbow asked 28/12, 2023 at 8:9

2

Solved

How can I just change the icon for the open/close dropdown list? I want to functionality to stay the same. As I tried to add them as endAdornment, the functionality is gone for both remove and open...
Madelon asked 4/10, 2021 at 13:41

3

I used @react-native-community/slider for my app, but I'm facing a problem that it's height is not changing, it's width is changing but not height, anyone know why? and also I want to render value ...
Overplay asked 23/11, 2020 at 12:16

2

Solved

I was just wondering if there is a way of handling this with generics than using any for the following. I am still trying to wrap my head around the types and generics, just wanted to stay clear of...
Sullen asked 7/8, 2020 at 11:4

3

Solved

I'm creating a file list with MUI DataGrid. The user able to check the checkbox in DataGrid to make their selection. I want the checkbox to reset after the user perform some action such as delete t...
Brinkmanship asked 22/4, 2021 at 8:34

4

I'm trying to delete a cookie using the next/headers module in a Next.js application, but it doesn't seem to work as expected. Here's the code snippet: import {cookies} from "next/headers&quot...
Blond asked 19/6, 2023 at 18:25

4

Solved

I am developing large scale application in ReactJS and having a concern with huge build size issue. After generation of build (Production Mode) in ReactJS, I found that build size was too much hea...
Percipient asked 24/11, 2018 at 6:24

4

I am continuously running into this error while trying to learn react native. The app will run fine and then I make some additions and it breaks and shows this error: The code that is producing it...
Screwy asked 19/10, 2020 at 9:23

9

Solved

I have an API class that I am trying to use in a React app. // API file class API { ... } export default API; // Other file import API from "utils/API"; const api = new API(); And I ...
Excommunicative asked 15/4, 2022 at 22:53

10

I am having an issue with Shadcn react library's Select component. It seems that "dynamically" generated SelectItem is causing an issue were they are not displayed in the SelectValue box ...
Sinistrodextral asked 6/9, 2023 at 9:41

4

Solved

On my website, I have a few routes that are made using React-Router, that point to a few different pages on the website itself. It all works fine in Development mode, but the build version is where...
Plumlee asked 7/2, 2023 at 15:45

© 2022 - 2024 — McMap. All rights reserved.