Questions tagged [reactjs]

React is a JavaScript library for building user interfaces. It uses a declarative, component-based paradigm and aims to be both efficient and flexible.

0
votes
0answers
8 views

React Navigation Between Components

I have a react app with these components. I can navigate to the center component with a back button from all these components from the left and then go to the other component from the cener component. ...
1
vote
0answers
4 views

Error: ERR! enoent spawn bash ENOENT & ERR! syscall spawn bash

I am getting errors while creating a new react or next app in my system. Tried adding path "C:\Windows\System32" and also other multiple troubleshooting but the error still persists. node ...
0
votes
0answers
6 views

How to solve Node EPERM error , error no. -4048. and why I'm getting this error

I Tried Some commands But didn't work. showing same error npm cache clean --force npm install -g npm@latest --force Try to install your component once again.
2
votes
1answer
10 views

React infinite loop returned by array even with dependency added

I am trying to add the values of bookButton to the array, serviceList1 in the useEffect hook and this is what I came up with. The problem is, the array returned an infinite loop even when I have added ...
0
votes
0answers
5 views

Property 'filter' does not exist when creating CONTEXT. Filter method getting error in typescript

export type cartItems = { name: string; description: string; price: number; imageUrl: string; quantity: number, } type UserContextType = { cartItems: cartItems | [] ...
-1
votes
0answers
16 views

Finding API to get random Quotes and images from website?

this is Antika. I have started learning to code since a few days back, and am only familiar with HTML/CSS and basics of JS. Developer Level: Beginner I have recently found this. https://winterly.app/ ...
0
votes
0answers
4 views

React server stuck at : ready in 1110ms and Network : use `--host ` to expose

vite v2.7.12 dev server running at: > Local: http://localhost:3000/ > Network: use --host to expose ready in 1110ms.
0
votes
0answers
9 views

Some problem with Custom Components in React + TS

I add some props on my component CpnBlockContainer and run it, Then the browser throw a error like this --- Uncaught TypeError: Cannot add property flex, object is not extensible The above error ...
0
votes
0answers
4 views

Axios Post text request only returning an HTML response

I am running a React app from a web server public folder and want to generate and save a text file to a local directory. In this test I keep getting as a response the raw html of the destination ...
2
votes
2answers
22 views

React.js terminal messages and error page theme changed when create new project with npx create-react-app, now showing asset static/js/bundle.js

my question is not about the code, it is about changes in the page errors in the react, such as the page theme, new terminal information, etc Yesterday I created a new react.js project with npx but ...
0
votes
1answer
9 views

how can i change the button function into a dropdown. ie,i have to get the value on dropdown

like this imagehere i am getting values while i am clicking button how can we change that to dropdown.can any one help me to go through it.dynamic dropdown using API import React,{useState} from '...
0
votes
2answers
15 views

How can I get the value from a component to another?

This is my TextEditor.js. I am willing to use it wherever I want it but when I use this component I am wishing to get the value associated with it every time it's state gets change. import React, { ...
1
vote
0answers
10 views

How to scoll Swipeabledrawer MUI in React

I have a swipeabledrawer in React from MUI, which I am using to show a lengthy content. The title should be visible even when the drawer is closed. I had achieved this in the following way MUI ...
0
votes
1answer
9 views

React router change url change navlinks icon

I am using the React router version 5.2.0 and for example: when I am on the homepage, I want the home icon to change to the "active icon" ("acthome"), how should I proceed? Thanks ...
0
votes
0answers
8 views

Can i unmount the parent component (app.js) when route to another one?

i want to stop fetching data on this App Component when routing to another child component , for example, when I navigate to ProductsDetails I want App component to stop. import React, { Component } ...

15 30 50 per page
1
2 3 4 5
24125