Questions tagged [reactjs]
React is a JavaScript library for building user interfaces. It uses a declarative, component-based paradigm and aims to be efficient and flexible.
reactjs
479,403
questions
0
votes
0
answers
6
views
Yup Resolver started casted error that type is not assignable
I'm currently using @hookform/resolvers version 3.9.0 and it started casting an error. This is my code:
const form = useForm<FormType>({
defaultValues: { ...defaultFormFieldValues },
...
0
votes
0
answers
11
views
Media elements such as <audio> and <video> must have a <track> for captions eslint error
When I try to add
<video controls>
<source src="content.mp4" type="video/mp4" />
<source src="content.webm" type="video/webm" />
Your ...
0
votes
0
answers
8
views
FormattedNumber from react-int1 library
I have problem, to format currency + value combination. with FormattedNumber method from react-int1 library
<FormattedNumber style="currency" currency="ZAR" value="120"...
0
votes
0
answers
9
views
RangeError: Maximum call stack size exceeded at stringify in Nextjs
My app has compiled successfully locally but having trouble while building. I am getting this error:
**RangeError: Maximum call stack size exceeded
at stringify
Sending SIGTERM signal to static ...
0
votes
0
answers
27
views
database returns error 400 whenever I want to insert data into it
so this is my code, whenever I gonna insert data into my database it returns error 400 I don't know the reason, I did other crud operations and it was fine.
import React from 'react';
import { Formik, ...
0
votes
0
answers
5
views
Uncaught ReferenceError: createRoot is not defined in bundled file from webpack
Issue: I get the Uncaught ReferenceError: createRoot is not defined issue in the bundled version (content.bundle.js), even though the content script contains the import { createRoot } from 'react-dom/...
0
votes
0
answers
22
views
How can I update/create multiple documents in a collection in firebase?
I'm trying to use a default collection in firebase that a user can overwrite with their own values and save elsewhere.
I have a default collection from which the initial values will be drawn, and have ...
0
votes
0
answers
21
views
can I use function "structuredClone" to clone an Object from state to edit it and setState to back?
I try to find some the easy way and easy understand to set state of Object in react.
Is it the correct way to do?
const [data, setData] = useState({a:1,b:2});
const somfunc =()=>{
let ...
0
votes
0
answers
13
views
Title: Issues with React Konva Transformer Detachment and NaN Warnings in Lasso Tool Implementation
Question:
I am trying to create a lasso tool similar to the one in Google's Jamboard using React Konva. However, I've been struggling with several issues for weeks. Despite trying various approaches, ...
0
votes
0
answers
28
views
React Hooks Behavior: Difference When Using variables and states in useCallback before their Definition
I have a doubt regarding, how hooks like usecallback work when the variables, arrow functions and states used in it and its dependency, are declared after the useCallback.
CodeSandBox link https://...
-2
votes
0
answers
23
views
Should I use Vite, Create React App, Next.js, or Remix for my React.js project? [closed]
I'm starting a new React.js project in 2024 and I'm trying to decide which development environment to use. I've come across several options like Vite, CRA, Next.js and Remix, but I'm not sure which ...
0
votes
0
answers
10
views
How could I create a textBox or a selectBox in the Summary
I have a datagrid from devextreme reactjs, Which is basically renders the provided as shown below. So While doing that I got set a search Box in the Summary area or below the column. How could I do ...
0
votes
0
answers
42
views
Upgrade Typescript for React application
I would like to upgrade [email protected] for my React application (it is already using Typescript).
After I run yarn add typescript@latest or yarn upgrade typescript@latest, there are changes in package....
-1
votes
0
answers
15
views
No overload matches this call. getting this error in Formik conditional state When Typescript
how can i solve this problem. what i am trying to do is where the UserInfo fields are always required
and the DetailedAddress fields are conditionally required based on whether any of them
are filled ...
0
votes
0
answers
4
views
Duplicated add style in head when use ConfigProvider custom theme
I use ConfigProvider in my app and i custom theme for new font family, but it add 2 style in head tag for 1 component
const designSystem = {
"token": {
"fontFamily": "...