Skip to main content

All Questions

0 votes
0 answers
16 views

Cannot assign to read only property 'message' of object 'SyntaxError: /src/component/Heading.jsx: Unexpected token, expected "{" (27:7) [duplicate]

Current i am trying to returning a object look like {text,object} from and jsx but i am keep getting this error Cannot assign to read only property 'message' of object 'SyntaxError: /src/component/...
Ayush Kumar's user avatar
0 votes
1 answer
38 views

Bulk Calling of API in React and JavaScript/Typescript That Based on Previous Response

I have a bulkSave function and I wanted to call API's repeatedly. Succeeding API depends on previous API. My problem is if createProjectPeopleOrganization returns successfully while ...
Joseph's user avatar
  • 7,616
0 votes
1 answer
42 views

clearTimeout a timer in a function with another function (React.js)

The code is for a Navbar. I want this when the mouse got out of it this timer started, but while this time was counting if I moved my mouse over the Navbar, the timer counting being stopped and ...
Darigan's user avatar
  • 68
0 votes
1 answer
74 views

Generate Dark Colors Only in React and JS

I have an <Avatar/> component and the text inside of it is color white, How do I make sure that its background color is dark so the text can be seen since its dynamically generated? Codesandbox -...
Joseph's user avatar
  • 7,616
2 votes
2 answers
137 views

Material UI Autocomplete Categories in ReactJS

I'm using MUI Autocomplete and Formik and I wanted to group this into categories. If it has no sub_accounts, then it shouldn't have a header label. Something like this: https://mui.com/material-ui/...
Joseph's user avatar
  • 7,616
0 votes
0 answers
68 views

React app error: "you might have mixed up default and named imports"

Error: index.js:255 Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export ...
Yogesh Kumar's user avatar
1 vote
1 answer
48 views

Doesnt update state after successfully fulfilled Reducers

When I try to log in, the Redux reducers update the state correctly, but the login page doesn't navigate to the home page immediately. However, if I click the login button again, then it navigates to ...
Kievon's user avatar
  • 21
0 votes
1 answer
114 views

React and Material-UI Autocomplete Multiple Items

I have a problem with using Formik and MUI Autocomplete with multiple items. For example: If you search by typing "Pencil", the issue is, it doesn't highlight it. Also you can still select ...
Joseph's user avatar
  • 7,616
0 votes
1 answer
60 views

AxiosError says ERR_NETWORK and ERR_EMPTY_RESPONSE

I am calling a Patch Request that takes 30 - 40 secs from the backend to resolve const handleSendClick = (data: any) => { const requiredLanguages = Array.isArray(data.required_languages) ...
john-weak's user avatar
0 votes
1 answer
226 views

css transition not working inside next/tailwind app

"use client"; import React, { useState } from "react"; import Image from "next/image"; import Link from "next/link"; const NavigationBar = () => ( <div id="navbar"> <Link href="/"&...
Faizal Munna's user avatar
0 votes
2 answers
444 views

Why "window.matchMedia('(prefers-color-scheme: dark)’).matches === false" when chrome is still in dark mode?

My computer is macOS Monterey(version 12.6.7) and has Google Chrome Version 121.0.6167.184 (Official Build) (x86_64) I’m trying to detect whether Chrome is in dark mode by javascript. (1) I set Chrome ...
Jessica Wang's user avatar
0 votes
2 answers
76 views

How to compare if two variables reference the same object in javascript

I am new to JavaScript and getting my hands on the spread operator. I understand that it will deep copy the top-level elements of an array or object but shallow copy the nested arrays or objects. I ...
Oc Oc's user avatar
  • 11
0 votes
1 answer
50 views

Having prop validation error in JSX during onclick as getting passed function as not function?

Having prop validation issue where I am passing a funciton as a prop but error is coming saying it is not function. The Contact.jsx: import Avatar from "./Avatar"; import PropTypes from &...
Amreet Kurmi's user avatar
0 votes
5 answers
104 views

How to show price close to a round figure without decimal point

i am doing an ecommerce project. Regular price is $549 12.96% is OFF if i minus 12.96% from $549 Sale price becomes $477.8496 As it can be seen in below screenshot. I want to show sale price close to ...
Firoz Khan's user avatar
0 votes
1 answer
79 views

Table Footer not fixed in the bottom of every page in ios devices

Table Footer not fixed in the bottom of every page in ios devices. it works fine in android and windows devices The code is: const downloadPdfRef = useRef(); let date = new Date(); const ...
Faisal Ur Rehman's user avatar

15 30 50 per page
1
2 3 4 5
345