Category "reactjs"

Module not found error due to a file not being exported from @firebase/database-compat

I'm having an issue with the following error: Module not found: Error: Package path ./standalone is not exported from package C:\Users\brohj\WebstormProjects\Re

React MUI - Consistent Tab Content Height

I understand that ideally should be placed at the top of the page. However, Assume they are place in the middle of the page. When changing from a tab with a l

I'm trying to get the output from my model,but got 4 tensor.I dont know anything about these tensors

I'm trying to get the output from my model,but got 4 tensor.I dont know anything about these tensors i use the model to detect face. Here is my model enter imag

How can I create a menu with my json info with REACT

what I try to do is to have the same display as this picture : So in my menu the plant type (Type of plant1) is displayed above a gray bar and when you click o

chrome devtool performance waterfall difference between Chrome and Chromium?

I'm trying to see the call stack of a piece of code, in Chrome and Chromium, they showed different results. I have already disabled all extensions in my Chrome,

React state returns undefined when passed as object value

I want my id to be increased every time this function is executed,but when I console the object id returns undefined let [count, setCount] = useState(0); c

Typescript conditional return type based on props

In electron application I have a component that renders a button and sends a message to an arbitrary channel to the main process. The main process does some wor

How to use react-select-table's rows as options to react-select's input field

I have an input field that should accept multiple inputs from options that are already set. - This input field needs to appear like tag input fields so I used t

yarn start FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Receiving this error with yarn start I tried many solutions with this error through stakeoverflow using this link FATAL ERROR: Ineffective mark-compacts near h

How to access an object inside another object in a map in react

react.js is complicated sometimes, I'm trying to access an information of a state, I have an array which has one object inside, and in this object, there is ano

Unable to access state - React.js working with Websocket

This is my first post here, so nice to meet you all. I have recently started my adventure with React, so my question probably will not be very challenging (it c

Calling useState inside useEffect on DOM load

I am building an app to track habits, and when a user is directed to a dashboard, I want them to immediately see their habits as pulled from a database. I have

How to merge multiple in index into single page applications

I have these two ReactDOM renders to merge into single ReactDOM, having difficulties in merging. ReactDOM.render( <Provider store={store}> <Brows

How to change storybook's stories folder directory?

I use CRA(typescript) and add storybook using under cli code $ npx create-react-app <project name> -template typescript $ npx -p @storybook/cli sb init --

Month Navigation through increment arrow and decrement arrow in javascript

I want to implement code where the increment or decrement of a arrow happens when I have selected the arrow. I want a replica of a design and implementation of

Each child should have a unique key prop even they're set - REACT

I'm getting my navbar routes from a json file like this: { "categorias": [ { "nombre": "Faltas de profesorado", "componentes": [ {

How to disable scroll on Safari? Nextjs

I am trying to disable scroll when the navbar menu is open on mobile, it works perfectly on chrome but not on safari. I have seen that many people have similar

Take a picture and after successfully receiving a response I we need to call the endpoint - REACT NATIVE

I have a screen where on click on image I need to open camera and take photo, I successfully open camera, take a picture but when I need to call the endpoints i

i want to add 2 data(may be 1) object in an array where array is a state of react

So here is my query, this is a small part of my code that is relevant to the question I want 3 input fields for different data input from users as in case the u

Index of first child on a list is lost when sending it to the parent with React.CloneElement (React + Typescript)

I'm building a custom Dropdown component and I'm having trouble using children. The Dropdown component has 3 levels, and the children are the options which are