id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_59318993
stackoverflow
FRONTEND_DEVELOPMENT
How can I force open external link in browser instead of app?
How can I force open external link in browser instead of app? My mobile website provides external links like YouTube. Depending on browsers, It opens on the web browser or corresponding app. But I want to force open the link in current browser instead of app. Example - Chrome Mobile browser always open Installed You...
https://stackoverflow.com/questions/59318993/how-can-i-force-open-external-link-in-browser-instead-of-app
javascript, reactjs, mobile
1,576,226,952
se_77798947
stackoverflow
FRONTEND_DEVELOPMENT
i18n localization in a React island of Astro js
i18n localization in a React island of Astro js My web is implemented in Astro, and I have a React island. Localization is implemented in an astro middleware export const initTranslation = defineMiddleware(async (context, next) => { await i18next.use(getLanguageDetector(context)).init({ resources: translationsData }...
https://stackoverflow.com/questions/77798947/i18n-localization-in-a-react-island-of-astro-js
reactjs, i18next, react-i18next, astrojs
1,704,965,233
se_75549659
stackoverflow
FRONTEND_DEVELOPMENT
Is there a reason why my API response success block is not executing my function calls?
Is there a reason why my API response success block is not executing my function calls? Relatively new to web development and I am currently taking a course which builds a face recognition application using React and Clarifai API. The application has a search box where the user pastes an image URL, which is then supp...
https://stackoverflow.com/questions/75549659/is-there-a-reason-why-my-api-response-success-block-is-not-executing-my-function
javascript, reactjs, clarifai
1,677,181,710
se_55889549
stackoverflow
FRONTEND_DEVELOPMENT
Redux add object to array
Redux add object to array I have the following problem... I want to add an object to an array of objects using redux in my react-native application. I get this error message: Invalid attempt to spread non-iterable instance // my action export function newTaskAction(){ return{ type: ADD_NEW_TASK, payload...
https://stackoverflow.com/questions/55889549/redux-add-object-to-array
reactjs, react-native, redux
1,556,448,929
se_76030996
stackoverflow
FRONTEND_DEVELOPMENT
How to use debounce with useQuery in React Query?
How to use debounce with useQuery in React Query? I am using React Query to fetch data from an API in a React app. I want to implement debounce for better performance, but I'm having trouble getting it to work with useQuery. When I try to wrap my API call in a debounced function, I get an error saying "query function ...
https://stackoverflow.com/questions/76030996/how-to-use-debounce-with-usequery-in-react-query
reactjs, axios, lodash, react-query
1,681,691,710
se_57253592
stackoverflow
FRONTEND_DEVELOPMENT
Can I set PDF resolution (pixels per inch) in react-pdf?
Can I set PDF resolution (pixels per inch) in react-pdf? Some background: There is no native pixel resolution for a PDF document. This is because PDF documents are scaled using inches. Each PDF viewer then determines how many pixels it will display per inch (e.g. Adobe Acrobat is 110px/in). My problem: React-PDF us...
https://stackoverflow.com/questions/57253592/can-i-set-pdf-resolution-pixels-per-inch-in-react-pdf
javascript, reactjs, pdf, react-pdf
1,564,402,153
se_66192135
stackoverflow
FRONTEND_DEVELOPMENT
I am trying to install new component using npm. But it gives error
I am trying to install new component using npm. But it gives error I was trying to add $ npm install react-native-touchable-bounce --save but it was giving an error the same as the following. then I deleted all node_modules still getting this error. npm install gives the following error. PS I:\Code\singal res\code\sin...
https://stackoverflow.com/questions/66192135/i-am-trying-to-install-new-component-using-npm-but-it-gives-error
reactjs, react-native, npm-install
1,613,272,804
se_45183218
stackoverflow
FRONTEND_DEVELOPMENT
BrowserRouter in react with typescript
BrowserRouter in react with typescript I have simple application in Reactjs + type script. I'm trying to use the BrowserRouter from react-router-dom. This is my code : import * as React from "react" import { Popular } from "./popular" import { BrowserRouter as Router, Route } from "react-router-dom" export interf...
https://stackoverflow.com/questions/45183218/browserrouter-in-react-with-typescript
reactjs, typescript
1,500,447,982
se_76567892
stackoverflow
FRONTEND_DEVELOPMENT
How can I mock server side requests in Playwright
How can I mock server side requests in Playwright I'm trying to find any docs or examples of how to mock server side requests with Playwright e2e testing. The official documentation on Playwright shares examples of how to mock/intercept client side calls. https://playwright.dev/docs/mock Within a React app that is pow...
https://stackoverflow.com/questions/76567892/how-can-i-mock-server-side-requests-in-playwright
reactjs, next.js, mocking, e2e-testing, playwright
1,687,892,543
se_75959591
stackoverflow
FRONTEND_DEVELOPMENT
"next/font" requires SWC although Babel is being used due to a custom babel config being present
"next/font" requires SWC although Babel is being used due to a custom babel config being present Im facing this error when I try to run my Nextjs project using styled components. This is my .babelrc { "plugins": [ [ "babel-plugin-styled-components", { "ssr": true, "displayNa...
https://stackoverflow.com/questions/75959591/next-font-requires-swc-although-babel-is-being-used-due-to-a-custom-babel-conf
reactjs, next.js, babeljs, styled-components, swc
1,680,879,700
se_79917632
stackoverflow
FRONTEND_DEVELOPMENT
Code Review on using two useEffects in a single component
Code Review on using two useEffects in a single component In the following code I have a header, which is being used in a Route Layout called RootLayout.tsx which is a parent root to my whole application. First I implemented the scroll hiding mechanics, and then found out that since this component is in the root layer...
https://stackoverflow.com/questions/79917632/code-review-on-using-two-useeffects-in-a-single-component
javascript, reactjs, react-hooks
1,774,945,825
se_66169637
stackoverflow
FRONTEND_DEVELOPMENT
How to limit the number of pages shown in pagination in React?
How to limit the number of pages shown in pagination in React? I am developing a web application using MERN stack. I have implemented pagination using React & Bootstrap. WHAT DO I WANT? Currently, I have a limited data set. So, the number of pages shown in the pagination are manageable. But with a larger data set, I...
https://stackoverflow.com/questions/66169637/how-to-limit-the-number-of-pages-shown-in-pagination-in-react
javascript, reactjs, bootstrap-4, pagination
1,613,123,619
se_60860828
stackoverflow
FRONTEND_DEVELOPMENT
How to delete data from database by using React js and REST API
How to delete data from database by using React js and REST API I am learning REST API. I am using the react app for front end and backend for Node js and express server. For API I am using REST API. I am using MongoDB for the database. I successfully display all the data to the browser. I can able to search the data....
https://stackoverflow.com/questions/60860828/how-to-delete-data-from-database-by-using-react-js-and-rest-api
reactjs, rest
1,585,195,158
se_55744010
stackoverflow
FRONTEND_DEVELOPMENT
Node js request timeout issue
Node js request timeout issue My application is in react and calls the node layer via axios call. The node layer then calls an external api which takes around 7 mins to respond. However i get a timeout error in about 2-3 mins from the time the request was made.When i call the external api directly (not via node layer ...
https://stackoverflow.com/questions/55744010/node-js-request-timeout-issue
node.js, reactjs, timeout, axios, connection-timeout
1,555,582,963
se_60667150
stackoverflow
FRONTEND_DEVELOPMENT
Prevent React hook from being called when state changes
Prevent React hook from being called when state changes I noticed that when you use useState in a hook and then use setState to change the value that is being cached, the hook will be called again and re-render the component. While this may be desired most of the time, I have one case where I don't want to re-render w...
https://stackoverflow.com/questions/60667150/prevent-react-hook-from-being-called-when-state-changes
reactjs
1,584,088,240
se_73919619
stackoverflow
FRONTEND_DEVELOPMENT
How to use PDF.JS with React?
How to use PDF.JS with React? I would like to parse a pdf file in a React app. The pdf will be provided through a html input. I used pdf-parse - a wrapper around pdf.js in node - without any problem. But when it comes to React, I only receive this error: MissingPDFException {message: 'Missing PDF "http://localhost:30...
https://stackoverflow.com/questions/73919619/how-to-use-pdf-js-with-react
reactjs, pdf, pdf.js, pdfjs-dist
1,664,638,501
se_65820378
stackoverflow
FRONTEND_DEVELOPMENT
How to return boolean value from custom function in react
How to return boolean value from custom function in react I have an app that takes in an object named user. The user object has userId information which is needed to get information from firestore database if the person is a paid member or not, membership is either true or false. If the person is a non-paid member tha...
https://stackoverflow.com/questions/65820378/how-to-return-boolean-value-from-custom-function-in-react
reactjs
1,611,196,110
se_60470598
stackoverflow
FRONTEND_DEVELOPMENT
How to smooth horizontal collapse transition with React-Bootstrap?
How to smooth horizontal collapse transition with React-Bootstrap? Edit: CodeSandbox link: https://codesandbox.io/s/strange-dawn-q9zow I'm creating a React app that I want to have a collapsible sidebar. I'm using the transition collapse utility from React-Bootstrap. Since this is for a sidebar, I'm using dimension="w...
https://stackoverflow.com/questions/60470598/how-to-smooth-horizontal-collapse-transition-with-react-bootstrap
css, reactjs, twitter-bootstrap, react-bootstrap
1,583,018,861
se_78437736
stackoverflow
FRONTEND_DEVELOPMENT
Is new React compiler called "Forget" available in any React version?
Is new React compiler called "Forget" available in any React version? I'm pretty curious about the new React compiler after watching some videos of it. But as far as I see React team didn't mention anything about it in the React 19 beta blog post. I installed the react@canary version in a new project but I c...
https://stackoverflow.com/questions/78437736/is-new-react-compiler-called-forget-available-in-any-react-version
reactjs, react-compiler
1,715,010,269
se_74070256
stackoverflow
FRONTEND_DEVELOPMENT
Exporting nested JSON to Excel in react
Exporting nested JSON to Excel in react I am trying to export nested json to excel with specific format in react. I found few solution with XLSX which print only root node but I would also like to print nested nodes. Here is my JSON [ { "Root":"00000", "RootId":"b597b7be58b0", "Index":0, "Ch...
https://stackoverflow.com/questions/74070256/exporting-nested-json-to-excel-in-react
javascript, reactjs, json
1,665,755,301
se_79811181
stackoverflow
FRONTEND_DEVELOPMENT
What is the best React-based charting library for interactive plots with large datasets?
What is the best React-based charting library for interactive plots with large datasets? I'm currently evaluating React-based plotting libraries for a project where we need to implement interactive charts such as line, bar, and scatter plots. The goal is to find a library that offers good performance, usability, and l...
https://stackoverflow.com/questions/79811181/what-is-the-best-react-based-charting-library-for-interactive-plots-with-large-d
reactjs, charts, chart.js, recharts, tooling-recommendation
1,762,426,521
se_56784590
stackoverflow
FRONTEND_DEVELOPMENT
How to convert NodeJS application to war file
How to convert NodeJS application to war file I have created a dashboard with React JS for front-end and Node JS for the backend. I have already built the build folder for React JS project, now the build folder is inside the Node JS application. What I mean by this is that when I give the npm start, the server starts ...
https://stackoverflow.com/questions/56784590/how-to-convert-nodejs-application-to-war-file
node.js, reactjs, apache, deployment, war
1,561,614,057
se_45347305
stackoverflow
FRONTEND_DEVELOPMENT
How to change a list item into an input for edit function in react?
How to change a list item into an input for edit function in react? I started to learn React and I made a to do list. With add,delete, drag&drop and edit functions. For my edit I take list item string and place it in the input used for add and if I press add again my list item change. I would like to rewrite that fu...
https://stackoverflow.com/questions/45347305/how-to-change-a-list-item-into-an-input-for-edit-function-in-react
javascript, reactjs, ecmascript-6
1,501,149,295
se_78188967
stackoverflow
FRONTEND_DEVELOPMENT
React native text is cutting when render
React native text is cutting when render I'm making an app in react native, this work fine in the majority devices, but in Honor and some Samsungs devices the text is cutting suddenly. How i rendered my text? I attach an example how to make this: in Src/localization/global_es.json { "closeSegment": "Concluir segmento"...
https://stackoverflow.com/questions/78188967/react-native-text-is-cutting-when-render
android, reactjs, react-native, text
1,710,873,838
se_58024880
stackoverflow
FRONTEND_DEVELOPMENT
how do i update the video source to play a new video
how do i update the video source to play a new video I'm trying to update the src source property of a html5 video in order to play a new video selected from a list by the user. The selected video file is stored inside the fileSelected variable. The src is changing each time a new video is selected, but the html5 vide...
https://stackoverflow.com/questions/58024880/how-do-i-update-the-video-source-to-play-a-new-video
javascript, reactjs, video, html5-video, src
1,568,968,951
se_75607817
stackoverflow
FRONTEND_DEVELOPMENT
Setting a state variable using another state variable?
Setting a state variable using another state variable? I have a state variable minSearchDate which retrieves a date, populated by the getMinSearchDate function with a call to the setter. This works fine, with minSearchDate being rendered in the view.. However, my issue is using the state variable minSearchDate to popu...
https://stackoverflow.com/questions/75607817/setting-a-state-variable-using-another-state-variable
reactjs
1,677,696,751
se_76331802
stackoverflow
FRONTEND_DEVELOPMENT
React Redux RTK invalidateTags: is firing too early
React Redux RTK invalidateTags: is firing too early I have a Redux endpoint updateItemQuantity: which performs a PATCH method on the backend to update a quantity. When this is completed. I need to invalidate the PendingOrder and PendingOrders cache. However, the cache looks to be getting in invalidated, and therefore ...
https://stackoverflow.com/questions/76331802/react-redux-rtk-invalidatetags-is-firing-too-early
reactjs, redux, react-redux, redux-toolkit
1,685,014,350
se_74296367
stackoverflow
FRONTEND_DEVELOPMENT
react-beautiful-dnd - weird styles appear when dragging and element
react-beautiful-dnd - weird styles appear when dragging and element Using the react-beautiful-dnd library, While dragging an element (before dropping it) a weird black point appears on my column. eg:
https://stackoverflow.com/questions/74296367/react-beautiful-dnd-weird-styles-appear-when-dragging-and-element
reactjs, react-beautiful-dnd
1,667,429,011
se_46929405
stackoverflow
FRONTEND_DEVELOPMENT
Material ui does not style the pages in my isomorphic react app
Material ui does not style the pages in my isomorphic react app I have followed all the guide in setting up Material ui in isomorphic environment but my pages are still white without design showing on the text. I am using universal-react-redux-starter-kit. In firefox, I get this in the console: Unknown property ‘mui-...
https://stackoverflow.com/questions/46929405/material-ui-does-not-style-the-pages-in-my-isomorphic-react-app
reactjs, redux, material-ui, isomorphism
1,508,925,558
se_76917431
stackoverflow
FRONTEND_DEVELOPMENT
Table not updated when I save data from modal
Table not updated when I save data from modal I'm using react.js and bootstrap 5, I'm confused how to add data from modal to the table, please help me figure it out, I'm newbie and want to learn react.js, thanks in advance! Modal: import React, { useState } from "react"; import { Modal, Button, Form, Row, Col } from "...
https://stackoverflow.com/questions/76917431/table-not-updated-when-i-save-data-from-modal
reactjs, react-hooks, bootstrap-5, react-bootstrap
1,692,224,630
se_77485231
stackoverflow
FRONTEND_DEVELOPMENT
pdftron react typscript next Error: Two instances of WebViewer were created on the same HTML element
pdftron react typscript next Error: Two instances of WebViewer were created on the same HTML element I'm trying to use pdftron from apryse docx editor; I can use the docx editor normally, but I keep getting errors like shown here: This is my code - wordeditor.tsx: "use client"; import { useEffect, useRef } from "rea...
https://stackoverflow.com/questions/77485231/pdftron-react-typscript-next-error-two-instances-of-webviewer-were-created-on-t
reactjs, typescript, webview, next.js13, pdftron
1,700,021,727
se_77910500
stackoverflow
FRONTEND_DEVELOPMENT
How to optimze my page without causing too much re render in react/next js
How to optimze my page without causing too much re render in react/next js I got my react page code to edit user profile it has a dropdown selector from react-select library and an input text box. For my state management, I use zustand. My page runs just fine for its purpose and function but when I add my dropdown com...
https://stackoverflow.com/questions/77910500/how-to-optimze-my-page-without-causing-too-much-re-render-in-react-next-js
reactjs, next.js, react-select, zustand
1,706,668,302
se_53729411
stackoverflow
FRONTEND_DEVELOPMENT
Why isn't React considered MVC?
Why isn't React considered MVC? I know that ReactJS isn't considered MVC, because the creators themselves have said so. But, recently, I was asked WHY React it isn't considered MVC even though it fits the MVC pattern. React renders a view, and when the someone using the client makes changes, React will take into a...
https://stackoverflow.com/questions/53729411/why-isnt-react-considered-mvc
reactjs, model-view-controller, architecture
1,544,549,543
se_43434381
stackoverflow
FRONTEND_DEVELOPMENT
My onChange not working with react
My onChange not working with react I have followed this documentation and have created a select tag with react. I have edited this question, If I use className="browser-default" in select it works fine. But for materialize select it is not working. onChange event is not working in my case. The function doesn't get cal...
https://stackoverflow.com/questions/43434381/my-onchange-not-working-with-react
javascript, reactjs, materialize
1,492,323,817
se_74013864
stackoverflow
FRONTEND_DEVELOPMENT
Why aren't all React components wrapped with React.memo() by default?
Why aren't all React components wrapped with React.memo() by default? I've just learned about React.memo() and was wondering, when would we NOT want that behavior? Wouldn't we always want components to only re-render if their props have been changed?
https://stackoverflow.com/questions/74013864/why-arent-all-react-components-wrapped-with-react-memo-by-default
reactjs
1,665,399,602
se_70890070
stackoverflow
FRONTEND_DEVELOPMENT
webpack 5 - Parsed request is a module
webpack 5 - Parsed request is a module I'm creating webpack5 setup for an small app and while doing I'm facing the below mentioned issue. Please suggest the way to resolve Issue Snapshot Module not found: Error: Can't resolve 'faker' in 'C:\Gowtham\micro-frontend-training\products\src' resolve 'faker' in 'C:\Gow...
https://stackoverflow.com/questions/70890070/webpack-5-parsed-request-is-a-module
javascript, node.js, reactjs, webpack, webpack-5
1,643,354,148
se_71599143
stackoverflow
FRONTEND_DEVELOPMENT
React input currency mask
React input currency mask I have a currency input(euro), and i used the react input masking to correct the numbers while the user is typing, but how can i make the user able to type ','?He can type numbers and '.' only. CurrencyInput id="input-example" name="input-na...
https://stackoverflow.com/questions/71599143/react-input-currency-mask
reactjs, input-mask
1,648,110,505
se_41853164
stackoverflow
FRONTEND_DEVELOPMENT
when I use react-redux-router and reroute to the old page the state does not get flushed and everything is added on top of the old state
when I use react-redux-router and reroute to the old page the state does not get flushed and everything is added on top of the old state I am new to react and redux and I am facing a very strange issue and it is almost a week that I am trying different ways but no result. I have two component channel and its children...
https://stackoverflow.com/questions/41853164/when-i-use-react-redux-router-and-reroute-to-the-old-page-the-state-does-not-get
reactjs, react-router, react-redux
1,485,351,701
se_70800740
stackoverflow
FRONTEND_DEVELOPMENT
How to style material UI box component to overlay
How to style material UI box component to overlay I'm really new when it comes to styling components and making them look the way I want. My desired outcome is to have two box components that overlap each other for a nice clean look for displaying user stats and remaining targets for the day. What I have in mind is: ...
https://stackoverflow.com/questions/70800740/how-to-style-material-ui-box-component-to-overlay
reactjs, material-ui
1,642,765,541
se_76271507
stackoverflow
FRONTEND_DEVELOPMENT
Fast refresh failing when dynamically importing components in Vite using React and typescript
Fast refresh failing when dynamically importing components in Vite using React and typescript I am trying to create a multistep form, I have my data in a separate file for constants like this import { lazy } from 'react'; export const steps = [ { id: 0, name: 'Personal Info', component: lazy(() => import...
https://stackoverflow.com/questions/76271507/fast-refresh-failing-when-dynamically-importing-components-in-vite-using-react-a
reactjs, typescript, vite
1,684,322,289
se_39337322
stackoverflow
FRONTEND_DEVELOPMENT
Basic example of Selectable list from Material-UI
Basic example of Selectable list from Material-UI Im trying to use a Selectable list of items in my Drawer Component. Im using the sample code define in the Material-ui documentation (Material-UI List Documentation), but things are not working as expected. Can anyone here helps me with a basic sample code using Select...
https://stackoverflow.com/questions/39337322/basic-example-of-selectable-list-from-material-ui
reactjs, material-ui
1,473,107,479
se_74542488
stackoverflow
FRONTEND_DEVELOPMENT
React Material UI createTheme_default is not a function
React Material UI createTheme_default is not a function I have created a project using vite and react. I create a theme to set my project into right to left. Everything was ok and the project was running properly. const theme = createTheme({ direction: 'rtl' , typography: { "fontFamily": `"iransans"`, "fo...
https://stackoverflow.com/questions/74542488/react-material-ui-createtheme-default-is-not-a-function
reactjs, material-ui, vite
1,669,184,091
se_53118163
stackoverflow
FRONTEND_DEVELOPMENT
onBlur resets value in react-select
onBlur resets value in react-select I have problem with react-select. When I type some text in searchable input and click outside, my text is disappear. I tried onBlur={() => input.onBlur({value: input.value})} and it works fine but I have ugly errors in console. Something like Uncaught ReferenceError: input is not de...
https://stackoverflow.com/questions/53118163/onblur-resets-value-in-react-select
reactjs, redux, onblur, react-select
1,541,159,779
se_70478658
stackoverflow
FRONTEND_DEVELOPMENT
How to use next-connect with host proxy during development?
How to use next-connect with host proxy during development? I am using Restinio as my backend API server. Previously I used ReactJS for front-end and solved this proxying issue using "proxy": "http://localhost:4000" in my package.json file as documented here; https://create-react-app.dev/docs/proxying-api-requests-in-...
https://stackoverflow.com/questions/70478658/how-to-use-next-connect-with-host-proxy-during-development
javascript, reactjs, next.js, next-connect
1,640,418,568
se_70803888
stackoverflow
FRONTEND_DEVELOPMENT
React - how to wait for API response to return component?
React - how to wait for API response to return component? I am building a page component that returns data from an API call and passes the values to my return statement. My page continues to return as blank because the page loads before the variables are returned from the API. I am wondering, how can I wait to render ...
https://stackoverflow.com/questions/70803888/react-how-to-wait-for-api-response-to-return-component
reactjs, typescript
1,642,779,600
se_63205421
stackoverflow
FRONTEND_DEVELOPMENT
Razorpay checkout form stuck on loading in webview
Razorpay checkout form stuck on loading in webview I have a webpage with Razorpay integrated and I want to use it in webview app. Everything works fine but when I select a payment method in razorpay form, it is stuck on loading and never opens the next screen where it asks whether to make it successful or fail (test m...
https://stackoverflow.com/questions/63205421/razorpay-checkout-form-stuck-on-loading-in-webview
android, node.js, reactjs, webview, razorpay
1,596,286,431
se_79776559
stackoverflow
FRONTEND_DEVELOPMENT
passlib bcrypt not working when deployed to render. "ValueError: password cannot be longer than 72 bytes"
passlib bcrypt not working when deployed to render. "ValueError: password cannot be longer than 72 bytes" Im trying to deploy a react app on render. It works on my localhost but when deployed on render the auth function doesn't work. It shows this error ValueError: password cannot be longer than 72 bytes, t...
https://stackoverflow.com/questions/79776559/passlib-bcrypt-not-working-when-deployed-to-render-valueerror-password-cannot
reactjs, deployment, bcrypt, render.com
1,758,954,262
se_45002200
stackoverflow
FRONTEND_DEVELOPMENT
How to use material-ui (alpha) with styeld-components properly?
How to use material-ui (alpha) with styeld-components properly? I've been trying to use styled-components with the alpha version of material-ui According to the documentation, this should work out of the box. This code: const StyledButton = styled(Button)` color: red; text-transform: uppercase; `; return <St...
https://stackoverflow.com/questions/45002200/how-to-use-material-ui-alpha-with-styeld-components-properly
reactjs, material-ui, styled-components
1,499,645,216
se_57713331
stackoverflow
FRONTEND_DEVELOPMENT
How can I add this Tripadvisor widget to my React site?
How can I add this Tripadvisor widget to my React site? I am trying to add a Tripadvisor rating widget to my React website (see code below). At the moment, only the Tripadvisor log is loading, and no rating information. I think the script in the widget is not running, and I'm not sure how to get it to run. I loaded t...
https://stackoverflow.com/questions/57713331/how-can-i-add-this-tripadvisor-widget-to-my-react-site
javascript, html, reactjs
1,567,092,190
se_50605219
stackoverflow
FRONTEND_DEVELOPMENT
Difference between npx and npm
Difference between npx and npm I have just started learning React, and Facebook helps in simplifying the initial setup by providing the following ready-made project. If I have to install the skeleton project, I have to type npx create-react-app my-app on the command line. Why does Facebook have npx create-react-app my...
https://stackoverflow.com/questions/50605219/difference-between-npx-and-npm
javascript, reactjs, npm, npx
1,527,684,714
se_61735425
stackoverflow
FRONTEND_DEVELOPMENT
How to validate an object with a key inside it in Yup Validation
How to validate an object with a key inside it in Yup Validation This is a snippet in my React application using Formik. My initial value is initialValues: { country: { label: '', value: '' } } My field input is country which is a Select option and its value when selected will be as country: { label: 'India'...
https://stackoverflow.com/questions/61735425/how-to-validate-an-object-with-a-key-inside-it-in-yup-validation
javascript, reactjs, formik, yup
1,589,217,532
se_49922170
stackoverflow
FRONTEND_DEVELOPMENT
React table with sorting and pagination doesn&#39;t update
React table with sorting and pagination doesn&#39;t update I am making a simple table in react where I have pagination (separate component) and sorting. The table should sort update when table header is clicked. It changes state of data. The data is sorted but it doesn't update. The table is rerendered when I change ...
https://stackoverflow.com/questions/49922170/react-table-with-sorting-and-pagination-doesnt-update
javascript, reactjs, sorting, datatable, pagination
1,524,143,965
se_77401207
stackoverflow
FRONTEND_DEVELOPMENT
cordova-plugin-purchase / iaptic - cant get in app purchase to work
cordova-plugin-purchase / iaptic - cant get in app purchase to work I have had to update my in app purchase functionality, due to google billing forced updates, and am such using v13 of cordova-plugin-purchase. I simply cannot get this to work or even return anything. My current code: import 'cordova-plugin-purchase';...
https://stackoverflow.com/questions/77401207/cordova-plugin-purchase-iaptic-cant-get-in-app-purchase-to-work
reactjs, google-play, in-app-purchase, cordova-plugin-purchase
1,698,826,758
se_72063497
stackoverflow
FRONTEND_DEVELOPMENT
CORS error when working with Reddit JSON API
CORS error when working with Reddit JSON API I'm working on a simple React app that makes fetch requests to the reddit JSON api (e.g. https://reddit.com/r/popular.json). In development I used the cors-anywhere demo, as I believed that the CORS errors wouldn't show up in production. My understanding is that these CORS ...
https://stackoverflow.com/questions/72063497/cors-error-when-working-with-reddit-json-api
javascript, reactjs, json, cors, reddit
1,651,265,013
se_49467195
stackoverflow
FRONTEND_DEVELOPMENT
Uploading image with form data in React
Uploading image with form data in React I am trying to upload a photo in my React application, along with some form data. It works with uploading form data from ItemAdd.jsx, a child component of ItemList.jsx. However, when I try to also POST an image file with this data, the image property is undefined when it hits th...
https://stackoverflow.com/questions/49467195/uploading-image-with-form-data-in-react
html, forms, reactjs, post, image-uploading
1,521,909,446
se_49173147
stackoverflow
FRONTEND_DEVELOPMENT
Express Router Delete
Express Router Delete I've written a simple "Grocery List" web application using the MERN stack (Mongo, Express, React, Node). The issue that I'm having is that my DELETE REST command is not firing unless I reload the page. Below is the source code for my event handler and the backend. Event Handler handleRemove(e){ ...
https://stackoverflow.com/questions/49173147/express-router-delete
javascript, reactjs, express, mern
1,520,512,221
se_68776951
stackoverflow
FRONTEND_DEVELOPMENT
Fixing height of react-table useTable rows
Fixing height of react-table useTable rows I'm having a hard time trying to set the height of a react-table using the useTable API. As seen in the code, I'm trying to force the height of the rows to be 30 here: {...row.getRowProps({ style: { height: 30 } })} But when the content of a cell is larger than 30px, the whol...
https://stackoverflow.com/questions/68776951/fixing-height-of-react-table-usetable-rows
reactjs, styled-components, react-table
1,628,879,574
se_79260111
stackoverflow
FRONTEND_DEVELOPMENT
npx : File C:\Program Files\nodejs\npx.ps1 cannot be loaded because running scripts is disabled on this system. Error
npx : File C:\Program Files\nodejs\npx.ps1 cannot be loaded because running scripts is disabled on this system. Error npx : File C:\Program Files\nodejs\npx.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?Lin...
https://stackoverflow.com/questions/79260111/npx-file-c-program-files-nodejs-npx-ps1-cannot-be-loaded-because-running-scri
reactjs, node.js, terminal
1,733,554,585
se_79954356
stackoverflow
FRONTEND_DEVELOPMENT
What is the recommended architecture for preserving infinite-scroll state and scroll position across navigation in Next.js applications?
What is the recommended architecture for preserving infinite-scroll state and scroll position across navigation in Next.js applications? I'm building an e-commerce application with an infinite-scrolling product list. A user may scroll through multiple batches of products, open a product detail page, and then navigate ...
https://stackoverflow.com/questions/79954356/what-is-the-recommended-architecture-for-preserving-infinite-scroll-state-and-sc
reactjs, next.js, pagination, architecture, infinite-scroll
1,780,982,549
se_79936385
stackoverflow
FRONTEND_DEVELOPMENT
How to handle 1 million requests per minute or 10k per second in a full stack application from user interface to backend
How to handle 1 million requests per minute or 10k per second in a full stack application from user interface to backend what are the performance techniques that we need to apply at each layer of our application development and deployment so that it will handle huge number requests . lets consider React JS as fronten...
https://stackoverflow.com/questions/79936385/how-to-handle-1-million-requests-per-minute-or-10k-per-second-in-a-full-stack-ap
java, reactjs, spring-boot, performance
1,777,979,757
se_79954486
stackoverflow
FRONTEND_DEVELOPMENT
Cannot find module &#39;react/jsx-runtime&#39; or its corresponding type declarations after switching to pnpm from npm
Cannot find module &#39;react/jsx-runtime&#39; or its corresponding type declarations after switching to pnpm from npm I'm getting the following TypeScript error after migrating my Next.js project from npm to pnpm: This JSX tag requires the module path 'react/jsx-runtime' to exist, but none could be found. Make sure ...
https://stackoverflow.com/questions/79954486/cannot-find-module-react-jsx-runtime-or-its-corresponding-type-declarations-af
reactjs, typescript, next.js, pnpm
1,780,998,953
se_70691154
stackoverflow
FRONTEND_DEVELOPMENT
module has no exports on my new npm package that I publish
module has no exports on my new npm package that I publish I just recently try to create new npm package. On my imports, it said module has no exports. I've export my component in index.js inside dist folder. This is my project structure - dist - components - MyComponent.tsx - index.js package.json My index...
https://stackoverflow.com/questions/70691154/module-has-no-exports-on-my-new-npm-package-that-i-publish
reactjs, typescript, npm, package.json
1,642,045,284
se_52543678
stackoverflow
FRONTEND_DEVELOPMENT
React with Cypress problem when using jQuery
React with Cypress problem when using jQuery I run the following test in Cypress. it('click button', () => { cy.visit('localhost:3000'); let $li = Cypress.$('.myClass'); cy.wrap($li) .click({force:true}) }) and receive the following error message: CypressError: Timed out retrying: Expected...
https://stackoverflow.com/questions/52543678/react-with-cypress-problem-when-using-jquery
jquery, reactjs, cypress
1,538,075,545
se_63255844
stackoverflow
FRONTEND_DEVELOPMENT
Dismissing Keyboard in React Native
Dismissing Keyboard in React Native I have multiple components in my app where I get user inputs using a keyboard. Now I want to dismiss the keyboard whenever user presses outside of the text input field. I know there is TouchableWithoutFeedback in which I can wrap my component, but whats the best way to do it for mul...
https://stackoverflow.com/questions/63255844/dismissing-keyboard-in-react-native
javascript, reactjs, react-native, keyboard, touchableopacity
1,596,579,551
se_40686544
stackoverflow
FRONTEND_DEVELOPMENT
Changing the text color of a react-bootstrap Navbar using webpack
Changing the text color of a react-bootstrap Navbar using webpack I'm trying to customize the colors of a react-bootstrap Navbar. This is the contents of my NavbarComponent.cs file: var React = require('react'); var ReactDOM = require('react-dom'); import Navbar from 'react-bootstrap/lib/Navbar'; import Nav from 'rea...
https://stackoverflow.com/questions/40686544/changing-the-text-color-of-a-react-bootstrap-navbar-using-webpack
css, reactjs, webpack, react-bootstrap
1,479,506,148
se_77588268
stackoverflow
FRONTEND_DEVELOPMENT
Convert a react JavaScript website into APK for remote testing?
Convert a react JavaScript website into APK for remote testing? I am developing a web app in react. It is a sort of a game/world style thing that I wanted to put on my phone that I can just pass to people to try out on my phone. I was wondering if there's a way to package the assets so it appears like any other app on...
https://stackoverflow.com/questions/77588268/convert-a-react-javascript-website-into-apk-for-remote-testing
reactjs, web-applications, apk
1,701,467,498
se_79198367
stackoverflow
FRONTEND_DEVELOPMENT
React Native error: Unimplemented component &lt;RNCSafeAreaProvider&gt;
React Native error: Unimplemented component &lt;RNCSafeAreaProvider&gt; I am new to React Native so bear with me but does anyone know how to resolve this error? For some reason when I run my app on an older simulator it does not give me the error (image attached) but when I run it on a newer simulator it does. Thanks ...
https://stackoverflow.com/questions/79198367/react-native-error-unimplemented-component-rncsafeareaprovider
reactjs, react-native, react-native-safe-area-view
1,731,886,633
se_79947953
stackoverflow
FRONTEND_DEVELOPMENT
(Partial) React hydration of dynamically created documents
(Partial) React hydration of dynamically created documents I'm developing an extended dialect of Markdown. I want to make certain elements interactive and am aiming for a SSR/hydration approach using vanilla React. However most of the document is "dumb" HTML, so I would like to serve it as-is and not make it part of t...
https://stackoverflow.com/questions/79947953/partial-react-hydration-of-dynamically-created-documents
reactjs, node.js, markdown, server-side-rendering
1,779,980,710
se_49629351
stackoverflow
FRONTEND_DEVELOPMENT
Send token with window.location
Send token with window.location I have a button in my reactjs application which when clicked should download a file. I need to send a token with the request to let user download the file. How can I send a token with it? Had it been a ajax, I would have sent the token in header. This is my code <div className="btn b...
https://stackoverflow.com/questions/49629351/send-token-with-window-location
javascript, ajax, reactjs
1,522,756,161
se_74091295
stackoverflow
FRONTEND_DEVELOPMENT
import {BrowserRouter, Router, Route} from &#39;react-router-dom&#39;; brought 15 errors
import {BrowserRouter, Router, Route} from &#39;react-router-dom&#39;; brought 15 errors ERROR in ./node_modules/react-router-dom/dist/index.js 13:0-836 export 'AbortedDeferredError' (reexported as 'AbortedDeferredError') was not found in 'react-router' (possible exports: Await, MemoryRouter, Navigate, Outlet, Route, ...
https://stackoverflow.com/questions/74091295/import-browserrouter-router-route-from-react-router-dom-brought-15-errors
reactjs, react-router, react-router-dom
1,665,962,359
se_73543783
stackoverflow
FRONTEND_DEVELOPMENT
Invalid type &quot;any&quot; of template literal expression in React Typescript
Invalid type &quot;any&quot; of template literal expression in React Typescript I have a slider component in which I keep getting this error : Invalid type "any" of template literal expression in React Typescript at const fillWidth variable. I'm unable to figure out solution for this, can someone please help me with t...
https://stackoverflow.com/questions/73543783/invalid-type-any-of-template-literal-expression-in-react-typescript
reactjs, typescript
1,661,868,209
se_76175242
stackoverflow
FRONTEND_DEVELOPMENT
TypeScript discriminated unions
TypeScript discriminated unions I am trying to understand how I can enforce discriminated unions. I have a type definition that technically TypeScript will accept, but is not quite working as intended. I need these type definitions for a function-based component. There is an official way to define a discriminated unio...
https://stackoverflow.com/questions/76175242/typescript-discriminated-unions
javascript, reactjs, typescript
1,683,216,620
se_74922319
stackoverflow
FRONTEND_DEVELOPMENT
Can two browser windows cause race conditions in synchronous JavaScript code?
Can two browser windows cause race conditions in synchronous JavaScript code? I have the following function that synchronizes some locally cached data with my online database. In the process, existing values are retrieved from the database, added to the locally cached values, and then sent as an update to the database...
https://stackoverflow.com/questions/74922319/can-two-browser-windows-cause-race-conditions-in-synchronous-javascript-code
javascript, reactjs, multithreading, thread-safety
1,672,073,315
se_75478647
stackoverflow
FRONTEND_DEVELOPMENT
getting code E401 error after running &#39;npm install&#39;
getting code E401 error after running &#39;npm install&#39; I'm trying to clone a ReactJs project by git clone, and after opening the project in VSCode and running npm install I'm facing with code E401 error with the following sentence: npm ERR! code E401 npm ERR! Unable to authenticate, your authentication token seem...
https://stackoverflow.com/questions/75478647/getting-code-e401-error-after-running-npm-install
node.js, reactjs, macos, visual-studio-code, npm
1,676,587,508
se_56473327
stackoverflow
FRONTEND_DEVELOPMENT
How to prevent state change in React after page refresh/view change?
How to prevent state change in React after page refresh/view change? My onClick-event handler adds/removes an id to a database field and changes the button color according to the toggle state true/false. While the data update works correctly, the color state resets upon a page refresh/view change. I guess the state n...
https://stackoverflow.com/questions/56473327/how-to-prevent-state-change-in-react-after-page-refresh-view-change
reactjs, local-storage, refresh, setstate
1,559,808,362
se_79817580
stackoverflow
FRONTEND_DEVELOPMENT
Simple Mui TextField crashing in RTL locale
Simple Mui TextField crashing in RTL locale My application is there for a long time and everything works perfectly in both the locales we support en and ar. So I don't think there is any issue with the localization setup. But now for a simple component like this: <TextField placeholder={'Enter yo...
https://stackoverflow.com/questions/79817580/simple-mui-textfield-crashing-in-rtl-locale
reactjs, material-ui
1,762,941,875
se_41105525
stackoverflow
FRONTEND_DEVELOPMENT
How to get GPS location in react-native-maps?
How to get GPS location in react-native-maps? My react-native app is using react-native-maps to display a Google Maps and a marker. A styled View is used as the location marker that has a fixed position on the device screen. How can we get the GPS coordinates (lat/lng) of the marker, at say the bottom left corner of t...
https://stackoverflow.com/questions/41105525/how-to-get-gps-location-in-react-native-maps
javascript, google-maps, reactjs, react-native
1,481,561,027
se_77655294
stackoverflow
FRONTEND_DEVELOPMENT
Property &#39;XXX&#39; does not exist on type &#39;IntrinsicAttributes &amp; RefAttributes&lt;any&gt;&#39;
Property &#39;XXX&#39; does not exist on type &#39;IntrinsicAttributes &amp; RefAttributes&lt;any&gt;&#39; I code as a hobby and I'm working on building a React website with TypeScript. I found a free Material UI template, and I'm trying to integrate it into the existing code. The template was written in JavaScript, a...
https://stackoverflow.com/questions/77655294/property-xxx-does-not-exist-on-type-intrinsicattributes-refattributesany
reactjs, typescript, material-ui
1,702,486,370
se_71184963
stackoverflow
FRONTEND_DEVELOPMENT
React Material UI Autocomplete resetting input after every keystroke in Karma+Jasmine continuous test
React Material UI Autocomplete resetting input after every keystroke in Karma+Jasmine continuous test I have a test where I'm simulating a user typing into a Material UI Autocomplete field. When I run the test using karma start karma.conf.js --single-run everything works fine, but when the tests are running in continu...
https://stackoverflow.com/questions/71184963/react-material-ui-autocomplete-resetting-input-after-every-keystroke-in-karmaja
reactjs, material-ui, karma-jasmine, karma-runner, react-testing-library
1,645,273,407
se_54066219
stackoverflow
FRONTEND_DEVELOPMENT
Dynamic React Select with Axios
Dynamic React Select with Axios I'm just starting out with adding some React to my Ruby on Rails front end. I have two data model called coffee_beans and countries. I want to add a select dropdown on a form for coffee_beans that pulls in the country, both id and country_name fields. I need to submit the id to the co...
https://stackoverflow.com/questions/54066219/dynamic-react-select-with-axios
reactjs, drop-down-menu, axios, react-select
1,546,810,991
se_48229826
stackoverflow
FRONTEND_DEVELOPMENT
React public/private page architecture menu
React public/private page architecture menu I have an app with some public page and some private page with different menu I use react-router to display all my page with a menu render() { return ( <Provider store={store}> <Router> <div className="App"> <MenuPublic /> ...
https://stackoverflow.com/questions/48229826/react-public-private-page-architecture-menu
javascript, reactjs
1,515,772,765
se_61853376
stackoverflow
FRONTEND_DEVELOPMENT
TypeError: Webpack imported module is not a function
TypeError: Webpack imported module is not a function I have a backend that calculates work shifts. I am trying to post some required user input with a module in services/shifts. The getAll method works fine, but posting throws an error TypeError: _services_shifts__WEBPACK_IMPORTED_MODULE_2__.default.postData is n...
https://stackoverflow.com/questions/61853376/typeerror-webpack-imported-module-is-not-a-function
javascript, reactjs
1,589,725,515
se_75789198
stackoverflow
FRONTEND_DEVELOPMENT
Where does Next.js store public keys?
Where does Next.js store public keys? In Next.js documentation they say that: By default environment variables are only available in the Node.js environment, meaning they won't be exposed to the browser. In order to expose a variable to the browser you have to prefix the variable with NEXT_PUBLIC_. NEXT_PUBLIC_ANALY...
https://stackoverflow.com/questions/75789198/where-does-next-js-store-public-keys
javascript, reactjs, next.js
1,679,308,361
se_79951831
stackoverflow
FRONTEND_DEVELOPMENT
How can I measure whether React dynamic imports are actually improving application performance?
How can I measure whether React dynamic imports are actually improving application performance? I am working on a large React application and have started using dynamic imports with React.lazy() to reduce the initial bundle size. Example: const Dashboard = React.lazy(() => import('./Dashboard')); The application now ...
https://stackoverflow.com/questions/79951831/how-can-i-measure-whether-react-dynamic-imports-are-actually-improving-applicati
reactjs, performance, webpack, frontend, web-frontend
1,780,658,338
se_63464841
stackoverflow
FRONTEND_DEVELOPMENT
ReferenceError: crypto is not defined
ReferenceError: crypto is not defined I am testing my React app and when it runs a test that executes the Web Cryptography API, specifically await crypto.subtle.generateKey I get the following error message ReferenceError: crypto is not defined It seems as if React Testing Library didn't have access to the library, ...
https://stackoverflow.com/questions/63464841/referenceerror-crypto-is-not-defined
reactjs, react-testing-library, webcrypto-api
1,597,739,776
se_68392370
stackoverflow
FRONTEND_DEVELOPMENT
How can we reset the data and state of the mutation in RTK query , like reset function in React Query for mutation?
How can we reset the data and state of the mutation in RTK query , like reset function in React Query for mutation? I am using RTK query with Redux Tool kit for the React project. The table rows are updated with "updateProductCategory" function provided by RTK mutation. But after the update of each table row, "updateP...
https://stackoverflow.com/questions/68392370/how-can-we-reset-the-data-and-state-of-the-mutation-in-rtk-query-like-reset-fu
reactjs, redux-toolkit, rtk-query
1,626,345,879
se_72595857
stackoverflow
FRONTEND_DEVELOPMENT
Testing hooks which throw errors
Testing hooks which throw errors The [deprecated?] react-hooks-testing-library would return any errors thrown by the hook under test. Probably my misunderstanding, but it looks like implementation now in the main @testing-library/react lost this feature? Here's what I'm thinking: import { safeRenderHook } from './safe...
https://stackoverflow.com/questions/72595857/testing-hooks-which-throw-errors
reactjs, react-hooks, react-testing-library, react-hooks-testing-library
1,655,067,773
se_59311255
stackoverflow
FRONTEND_DEVELOPMENT
How to create unit test for URL params for React Router using Enzyme
How to create unit test for URL params for React Router using Enzyme I am trying to put url params under test using Enzyme of React Router. The application is simple so far. I have App.jsx that has a <Router /> component with a <Switch /> component and two <Route /> components. Any help would be appreciated in setti...
https://stackoverflow.com/questions/59311255/how-to-create-unit-test-for-url-params-for-react-router-using-enzyme
reactjs, unit-testing, react-router, jestjs, enzyme
1,576,177,564
se_72238678
stackoverflow
FRONTEND_DEVELOPMENT
link login page to homepage using react
link login page to homepage using react I am trying to display first the log in page and then it goes to the home page but it does not work. Can Anyone figure out the problem? How Can I direct my login page after putting all the details and then it opens the homepage. I did the homepage and its ready but the code is t...
https://stackoverflow.com/questions/72238678/link-login-page-to-homepage-using-react
reactjs, authentication
1,652,518,202
se_70288104
stackoverflow
FRONTEND_DEVELOPMENT
After changing UseState Hook React component not re-rendering
After changing UseState Hook React component not re-rendering I am new at React and i am trying to develop a login page. I did almost all but I could not re-render after successful login. I need to refresh the page to see the protected content. As far as I know, using custom Hook and changing its value should trigger ...
https://stackoverflow.com/questions/70288104/after-changing-usestate-hook-react-component-not-re-rendering
javascript, reactjs, react-hooks, use-state
1,639,044,892
se_70448328
stackoverflow
FRONTEND_DEVELOPMENT
Compiled with problems:X ERROR in ./src/route/AppRoute.js 12:37-43 export &#39;Switch&#39; (imported as &#39;Switch&#39;) was not found in &#39;react-router&#39;
Compiled with problems:X ERROR in ./src/route/AppRoute.js 12:37-43 export &#39;Switch&#39; (imported as &#39;Switch&#39;) was not found in &#39;react-router&#39; Compiled with problems:X ERROR in ./src/route/AppRoute.js 12:37-43 export 'Switch' (imported as 'Switch') was not found in 'react-router' (possible exports: ...
https://stackoverflow.com/questions/70448328/compiled-with-problemsx-error-in-src-route-approute-js-1237-43-export-switc
reactjs, react-router, react-router-dom
1,640,172,473
se_71338551
stackoverflow
FRONTEND_DEVELOPMENT
How to add styles to react-pdf Document
How to add styles to react-pdf Document I tried with this code and cannot adjust the width <Document style={{width:"100px"}} file="123.pdf" onLoadSuccess={onDocumentLoadSuccess} > ...
https://stackoverflow.com/questions/71338551/how-to-add-styles-to-react-pdf-document
reactjs, styling, react-pdf
1,646,316,546
se_68365439
stackoverflow
FRONTEND_DEVELOPMENT
I want to remove Underline in Bootstrap Link
I want to remove Underline in Bootstrap Link I have seen similar questions but solution suggests to change it through css. I tried but unable to reproduce the solution for my code. Currently link is looking like this I also explored react-bootstrap docs but hey haven't mentioned any specific tag to remove that styling...
https://stackoverflow.com/questions/68365439/i-want-to-remove-underline-in-bootstrap-link
css, reactjs, hyperlink, react-bootstrap
1,626,190,538
se_66346335
stackoverflow
FRONTEND_DEVELOPMENT
Why Adding window.location.href in _app.js Next making always reload page
Why Adding window.location.href in _app.js Next making always reload page I want to make authentication. if the user is not logged in it will be redirected to the login page. I added that condition in the Provider file and implemented it in _app.js. after I added this file: const reds = () => { if(typeof ...
https://stackoverflow.com/questions/66346335/why-adding-window-location-href-in-app-js-next-making-always-reload-page
reactjs, react-redux, next.js
1,614,151,208
se_79950026
stackoverflow
FRONTEND_DEVELOPMENT
React useEffect cleanup function not running when component unmounts inside conditional render
React useEffect cleanup function not running when component unmounts inside conditional render I'm building a chat component that subscribes to a WebSocket when mounted and should unsubscribe on unmount. The cleanup function in useEffect doesn't seem to fire when the component is removed via a conditional render in th...
https://stackoverflow.com/questions/79950026/react-useeffect-cleanup-function-not-running-when-component-unmounts-inside-cond
javascript, reactjs
1,780,378,446
se_76750947
stackoverflow
FRONTEND_DEVELOPMENT
Vite Dev Server Sourcemaps Don&#39;t Work or Point to Wrong Lines/Files in VScode Debugger
Vite Dev Server Sourcemaps Don&#39;t Work or Point to Wrong Lines/Files in VScode Debugger I'm using WSL2 and/or Fedora 38 with VScode and a previously CRA project that I've converted over to Vite. Since moving to Vite I have not been able to get the VScode debugger to work correctly in both Chrome and Firefox with ea...
https://stackoverflow.com/questions/76750947/vite-dev-server-sourcemaps-dont-work-or-point-to-wrong-lines-files-in-vscode-de
node.js, reactjs, visual-studio-code, debugging, vite
1,690,162,204
se_75288447
stackoverflow
FRONTEND_DEVELOPMENT
Modal is not animate in the first render on chrome browser from iphone (React, IOS, SCSS, Chrome)
Modal is not animate in the first render on chrome browser from iphone (React, IOS, SCSS, Chrome) I create a simple modal in react. I also create a scss file for the modal and tried to animate the enter & exit of the modal. When I first open the modal - the animation is not working when enter from chrome on iphone (wo...
https://stackoverflow.com/questions/75288447/modal-is-not-animate-in-the-first-render-on-chrome-browser-from-iphone-react-i
css, reactjs, iphone, sass
1,675,102,115
se_79643862
stackoverflow
FRONTEND_DEVELOPMENT
React Share not showing preview (Open Graph) despite valid Meta controller and endpoint in ASP.NET Core
React Share not showing preview (Open Graph) despite valid Meta controller and endpoint in ASP.NET Core I'm trying to implement server-side rendered Open Graph (OG) meta tags for social media previews (e.g., Facebook, LinkedIn, Twitter) in my ASP.NET Core 9.0 + React web application using react-share. I created a cust...
https://stackoverflow.com/questions/79643862/react-share-not-showing-preview-open-graph-despite-valid-meta-controller-and-e
reactjs, asp.net-core, facebook-opengraph, react-share
1,748,519,824
se_75309215
stackoverflow
FRONTEND_DEVELOPMENT
How could I update my a specific value in a array of json, which depends on values in other json while allowing it to be able to edit
How could I update my a specific value in a array of json, which depends on values in other json while allowing it to be able to edit I am not so sure how to put it in a clean way. I try to summarize it by cases to illustrate the problem. At first by default, my product list has a default product with expiry date: 203...
https://stackoverflow.com/questions/75309215/how-could-i-update-my-a-specific-value-in-a-array-of-json-which-depends-on-valu
javascript, reactjs
1,675,249,243
se_57369974
stackoverflow
FRONTEND_DEVELOPMENT
Invariant Violation Error. React Minified Error #31
Invariant Violation Error. React Minified Error #31 I am rendering a challenge list and it works on my local. But when I deploy it to Netlify, I get some error on console. What is wrong with my code? ** react-dom.production.min.js:4408 Invariant Violation: Minified React error #31; visit https://reactjs.org/...
https://stackoverflow.com/questions/57369974/invariant-violation-error-react-minified-error-31
javascript, reactjs
1,565,072,371