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_79758662
stackoverflow
FRONTEND_DEVELOPMENT
TailwindCSS v4 utilities are too weak to override the styling of Ant Design v5 components
TailwindCSS v4 utilities are too weak to override the styling of Ant Design v5 components In TailwindCSS v3, the overrides still worked well, but from TailwindCSS v4 onward, it simply doesn't work, and Ant Design v5 always ends up being stronger. It seems this has to do with layers. How can I override Ant Design v5 co...
https://stackoverflow.com/questions/79758662/tailwindcss-v4-utilities-are-too-weak-to-override-the-styling-of-ant-design-v5-c
reactjs, tailwind-css, antd, tailwind-css-4
1,757,320,166
se_69284776
stackoverflow
FRONTEND_DEVELOPMENT
How to change time according to TimeZone?
How to change time according to TimeZone? I have a method that gets a parameter as a time string "15:35". That time is in UTC TimeZone. But I wanna convert it to different TimeZone (for example America/New_York or ...). The examples say that there is a package called "moment" that has a "tz" method but I checked and t...
https://stackoverflow.com/questions/69284776/how-to-change-time-according-to-timezone
javascript, reactjs, redux
1,632,315,636
se_57023990
stackoverflow
FRONTEND_DEVELOPMENT
How to "hide the address bar" on mobile in a react app?
How to "hide the address bar" on mobile in a react app? Well I have a very simple website, the body of the site should scroll such that the address bar is no longer visible. from this topic it seems that simply calling the follwing ought to do the trick: window.scrollTo(0,1) However in my react app this i...
https://stackoverflow.com/questions/57023990/how-to-hide-the-address-bar-on-mobile-in-a-react-app
javascript, reactjs, mobile
1,563,068,829
se_54647623
stackoverflow
FRONTEND_DEVELOPMENT
How to test localStorage in my react app?
How to test localStorage in my react app? I have a private route in my react app, and when I use jest and run yarn test to test my app, and it shows that in my PrivateRoute file there's one line without coverage. It's line 8 in the localStorage.getItem code, How do I get coverage for that line?
https://stackoverflow.com/questions/54647623/how-to-test-localstorage-in-my-react-app
reactjs, unit-testing, react-router, jestjs, react-router-dom
1,549,966,412
se_75921546
stackoverflow
FRONTEND_DEVELOPMENT
useRef of React Three fiber/drei Component undefined/null in useEffect
useRef of React Three fiber/drei Component undefined/null in useEffect I am trying to trigger a transition/movement for a React Three drei component on initial page load by accessing its ref in a useEffect function. Within the useEffect on initial load the useRef is still null. import React, { useRef useEffect, Suspen...
https://stackoverflow.com/questions/75921546/useref-of-react-three-fiber-drei-component-undefined-null-in-useeffect
reactjs, react-three-fiber, react-three-drei
1,680,538,150
se_77848642
stackoverflow
FRONTEND_DEVELOPMENT
Flaky unit tests (React Testing Library) in CI/CD (teamcity)
Flaky unit tests (React Testing Library) in CI/CD (teamcity) I am mostly looking for if someone else has had this experience and figured out what causes it or how to mitigate it. I have a form with some fairly complex behavior in terms of some value in one field changing validation logic or making a "default" selectio...
https://stackoverflow.com/questions/77848642/flaky-unit-tests-react-testing-library-in-ci-cd-teamcity
reactjs, jestjs, react-testing-library, testing-library
1,705,695,961
se_79927394
stackoverflow
FRONTEND_DEVELOPMENT
Why Does startTransition Trigger High-Priority Updates and Re-renders Even Without State Changes?
Why Does startTransition Trigger High-Priority Updates and Re-renders Even Without State Changes? I came across the following statement: Calling startTransition, even if no updates are triggered inside it, will still cause both a high-priority update and a low-priority update. To check this consider following exampl...
https://stackoverflow.com/questions/79927394/why-does-starttransition-trigger-high-priority-updates-and-re-renders-even-witho
javascript, reactjs
1,776,430,271
se_69281522
stackoverflow
FRONTEND_DEVELOPMENT
Apply :focus-visible when focusing element programatically
Apply :focus-visible when focusing element programatically I want to apply styling to my element when I'm focus it using my keyboard or when focused programatically using HTMLElement.focus(). E.g in the example below. I want the <div> to have blue borders initially or when I focus with tab. I only want it to have red ...
https://stackoverflow.com/questions/69281522/apply-focus-visible-when-focusing-element-programatically
javascript, css, reactjs
1,632,302,822
se_30146105
stackoverflow
FRONTEND_DEVELOPMENT
React input defaultValue doesn&#39;t update with state
React input defaultValue doesn&#39;t update with state I'm trying to create a simple form with react, but facing difficulty having the data properly bind to the defaultValue of the form. The behavior I'm looking for is this: When I open my page, the Text input field should be filled in with the text of my AwayMessa...
https://stackoverflow.com/questions/30146105/react-input-defaultvalue-doesnt-update-with-state
javascript, forms, reactjs, coffeescript, 2-way-object-databinding
1,431,214,051
se_58924179
stackoverflow
FRONTEND_DEVELOPMENT
Typescript/React extending default function component props gives error
Typescript/React extending default function component props gives error What I want is to be able to define a Typescript interface for my component and have it extend the default interface any component uses, to avoid having to declare every default prop such as className, onClick and the like in my own interface. I h...
https://stackoverflow.com/questions/58924179/typescript-react-extending-default-function-component-props-gives-error
reactjs, typescript, jsx
1,574,118,029
se_57062237
stackoverflow
FRONTEND_DEVELOPMENT
How to add type FunctionComponent to React function component using the &quot;function&quot; syntax and not &quot;const&quot;?
How to add type FunctionComponent to React function component using the &quot;function&quot; syntax and not &quot;const&quot;? This works fine: import React, { FunctionComponent } from "react"; const Counter: FunctionComponent = () => <div>hello from Counter</div>; export default Counter; This has compile error: im...
https://stackoverflow.com/questions/57062237/how-to-add-type-functioncomponent-to-react-function-component-using-the-functio
reactjs, typescript
1,563,296,555
se_71042700
stackoverflow
FRONTEND_DEVELOPMENT
How to use window.location.href in React.js
How to use window.location.href in React.js If I use JSON.stringify(window.location.href), is there any way to show that URL without "" (quotes / as a string)? So showing it like a link and not a string. If not... Is there a way to use window.location.href in React without having to use JSON.stringify()? Or maybe use ...
https://stackoverflow.com/questions/71042700/how-to-use-window-location-href-in-react-js
javascript, reactjs, json
1,644,367,599
se_66460570
stackoverflow
FRONTEND_DEVELOPMENT
How can I display fractions in react native?
How can I display fractions in react native? I can't find a clear answer or best practice on how to do this so I assume it's very easy. ;) I've seen some stuff about Unicode and been linked to some math libraries, but don't see anything obvious about how to display them. This is for an iOS app and I'm using Expo. I'm ...
https://stackoverflow.com/questions/66460570/how-can-i-display-fractions-in-react-native
reactjs, react-native
1,614,787,018
se_67053345
stackoverflow
FRONTEND_DEVELOPMENT
Could not find a declaration file for module &#39;react/jsx-runtime&#39;
Could not find a declaration file for module &#39;react/jsx-runtime&#39; I am using material-ui in react with typescript template. All of my code is working fine but I am getting this error on multiple lines (not an error warning but with red line as my code renders) Could not find a declaration file for module 'react...
https://stackoverflow.com/questions/67053345/could-not-find-a-declaration-file-for-module-react-jsx-runtime
javascript, reactjs, typescript, material-ui
1,618,207,306
se_79685913
stackoverflow
FRONTEND_DEVELOPMENT
Inaccurate &amp; Unreliable Barcode Scanning on iOS Web App
Inaccurate &amp; Unreliable Barcode Scanning on iOS Web App I'm building a React/TypeScript web app (PWA-style) that includes a barcode scanner. The scanner uses the BarcodeDetector API if it's supported; otherwise, I fall back to @zxing/library. The issue: it works great on Android (fast and reliable), but it's super...
https://stackoverflow.com/questions/79685913/inaccurate-unreliable-barcode-scanning-on-ios-web-app
ios, reactjs, web-applications, zxing, barcode-scanner
1,751,366,213
se_42296988
stackoverflow
FRONTEND_DEVELOPMENT
How to pass a variable with text and a link into a React element
How to pass a variable with text and a link into a React element If I have a React component like this: return ( <p>{obj.text}</p> ) Where I am passing in a hardcoded value like this: obj = { text: 'This is an example string. I would like a [link here].' } Is my only recourse to use dangerouslySetInnerHtml a...
https://stackoverflow.com/questions/42296988/how-to-pass-a-variable-with-text-and-a-link-into-a-react-element
reactjs, hyperlink, xss
1,487,331,556
se_79926526
stackoverflow
FRONTEND_DEVELOPMENT
How do I deal with a bookinglist in a vehicle management system
How do I deal with a bookinglist in a vehicle management system How do I write a code in reactjs for a booking list to enable an admin be able to get all bookings made by customers and be able to accept and reject the bookings while the customer on the other hand can see the bookings they made with status either accep...
https://stackoverflow.com/questions/79926526/how-do-i-deal-with-a-bookinglist-in-a-vehicle-management-system
reactjs
1,776,330,830
se_71037208
stackoverflow
FRONTEND_DEVELOPMENT
How to change fonts in react-pdf
How to change fonts in react-pdf I have a problem with changing fonts in react-pdf. // Register Font Font.register({ family: "Roboto", src: "https://cdnjs.cloudflare.com/ajax/libs/ink/3.1.10/fonts/Roboto/roboto-light-webfont.ttf" }); So by default with font register is given Roboto font, but I need a Pub...
https://stackoverflow.com/questions/71037208/how-to-change-fonts-in-react-pdf
javascript, reactjs, pdf, npm, fonts
1,644,337,071
se_69225245
stackoverflow
FRONTEND_DEVELOPMENT
Update webpack 4 to webpack 5 on an existing create-react-app ejected with react-app-rewired
Update webpack 4 to webpack 5 on an existing create-react-app ejected with react-app-rewired I have an existing old react application, created with create-react-app and ejected with react-app-rewired. I'm updating the deprecated dependencies. I've already updated react-scripts to the current version (4.0.3) and everyt...
https://stackoverflow.com/questions/69225245/update-webpack-4-to-webpack-5-on-an-existing-create-react-app-ejected-with-react
javascript, reactjs, create-react-app, webpack-5, react-app-rewired
1,631,889,450
se_58357254
stackoverflow
FRONTEND_DEVELOPMENT
How does the Facebook &quot;create-react-app&quot; differ from &quot;dotnet new react&quot;? Is development and maintenance the same?
How does the Facebook &quot;create-react-app&quot; differ from &quot;dotnet new react&quot;? Is development and maintenance the same? I'm starting my exposure to React from a .NET Core perspective. From a beginner perspective it seems that in addition to the Kestrel and IIS servers exposed in .NET Core, there is anoth...
https://stackoverflow.com/questions/58357254/how-does-the-facebook-create-react-app-differ-from-dotnet-new-react-is-deve
reactjs, react-redux, asp.net-core-3.0, asp-net-core-spa-services
1,570,905,130
se_79925757
stackoverflow
FRONTEND_DEVELOPMENT
How do I pass props to a function component in TypeScript? I am receiving an error that it&#39;s type is not a valid JSX element type
How do I pass props to a function component in TypeScript? I am receiving an error that it&#39;s type is not a valid JSX element type Error: Type '{ activeHeader: boolean; activeMenu: boolean; }' is not assignable to type 'IntrinsicAttributes & boolean'. 'MobileHeader' cannot be used as a JSX component. Its type '(a...
https://stackoverflow.com/questions/79925757/how-do-i-pass-props-to-a-function-component-in-typescript-i-am-receiving-an-err
reactjs, typescript, vite
1,776,228,660
se_67532088
stackoverflow
FRONTEND_DEVELOPMENT
issue with sanitizing HTML using &quot;sanitize-html&quot; npm package
issue with sanitizing HTML using &quot;sanitize-html&quot; npm package According to documentation, i tried the following code const dirty = '<div>Content</div>'; const clean = sanitizeHtml(dirty); The expected output of clean should be "Content", but this returns "clean" returns same value from dirty with div tags
https://stackoverflow.com/questions/67532088/issue-with-sanitizing-html-using-sanitize-html-npm-package
javascript, reactjs
1,620,984,722
se_71779285
stackoverflow
FRONTEND_DEVELOPMENT
Hardware Backbutton In react native android not working
Hardware Backbutton In react native android not working I am using react native with navigation. I did not notice but suddenly the back button is not working in the entire app. The header back button on left is working absolutely fine however, the hardware button is not working to go back to the previous screen. Could...
https://stackoverflow.com/questions/71779285/hardware-backbutton-in-react-native-android-not-working
android, reactjs, react-native, react-navigation
1,649,322,380
se_79924752
stackoverflow
FRONTEND_DEVELOPMENT
Render-looping when child and parent components both store state simultaneously
Render-looping when child and parent components both store state simultaneously What is the best practice in React + TypeScript to prevent component render looping in the following scenario: There is a standalone component (like an independent component from a library) IBaseComponent that takes a list of records as in...
https://stackoverflow.com/questions/79924752/render-looping-when-child-and-parent-components-both-store-state-simultaneously
javascript, reactjs
1,776,080,409
se_64895738
stackoverflow
FRONTEND_DEVELOPMENT
React app not re-loading while changes in any file of app
React app not re-loading while changes in any file of app I installed react app through create-react-app recently. So when I changed any file in app, it doesn't reload in browser. But when I changed something in index.html it auto-refresh. Can anyone help me with this issue?
https://stackoverflow.com/questions/64895738/react-app-not-re-loading-while-changes-in-any-file-of-app
reactjs
1,605,711,836
se_72673362
stackoverflow
FRONTEND_DEVELOPMENT
Error: Text content does not match server-rendered HTML
Error: Text content does not match server-rendered HTML I'm trying to perform a simple algorithm in next.js and I'm getting this hydration errors. This is the code I'm using: import numeros from "../../functions/numberGenerators.js" export default function teste() { let number = numeros() return number.map(n => ...
https://stackoverflow.com/questions/72673362/error-text-content-does-not-match-server-rendered-html
javascript, reactjs, next.js
1,655,594,421
se_79923587
stackoverflow
FRONTEND_DEVELOPMENT
Add existing react app project in an empty Aspire project
Add existing react app project in an empty Aspire project In visual studio I've created an empty solution, then I've created a basic react app. It works. Now I've created an emptyy aspire project and I want to add the react app to it so when I run the aspire project the react app starts. I've added the react project a...
https://stackoverflow.com/questions/79923587/add-existing-react-app-project-in-an-empty-aspire-project
reactjs, dotnet-aspire
1,775,833,601
se_79095775
stackoverflow
FRONTEND_DEVELOPMENT
Agora IO, audio echo using agora-rtc-react
Agora IO, audio echo using agora-rtc-react I have an web app developed in nextjs that uses agora-rtc-react v2.3.0 and agora-rtc-sdk-ng v4.22.1. When I enter video call my local user keeps hearing everythig he says like an echo. Eg.: if I say "hello" this sounds come back to my audio output device. Which would be the p...
https://stackoverflow.com/questions/79095775/agora-io-audio-echo-using-agora-rtc-react
reactjs, audio, video-streaming, agora.io, agora-web-sdk-ng
1,729,111,490
se_48311274
stackoverflow
FRONTEND_DEVELOPMENT
Jest Unit test, mock implementation of IF condition within function for complete code coverage
Jest Unit test, mock implementation of IF condition within function for complete code coverage I have a API script in a file const ApiCall = { fetchData: async (url) => { const result = await fetch(url); if (!result.ok) { const body = await result.text(); // uncovered line throw new Error(`Erro...
https://stackoverflow.com/questions/48311274/jest-unit-test-mock-implementation-of-if-condition-within-function-for-complete
javascript, reactjs, jestjs, enzyme
1,516,229,380
se_60456862
stackoverflow
FRONTEND_DEVELOPMENT
React - Handling Null values passed as props
React - Handling Null values passed as props I am trying to return a placeholder for the 'null' prop values. I tried running a ternary operator and 'if' conditional statement to check if values exist before being rendered. The props are passed from a parent component to a child component while data is being pushed t...
https://stackoverflow.com/questions/60456862/react-handling-null-values-passed-as-props
javascript, reactjs
1,582,911,817
se_77153819
stackoverflow
FRONTEND_DEVELOPMENT
Telegram Login widget doesn&#39;t render in React SPA app
Telegram Login widget doesn&#39;t render in React SPA app I have a React frontend app (was bootstraped by create-react-app) and django at the backend. We have dev and production environments, they have different domains. Now I attempt to implement widget at dev env. I want to login users via telegram login widget. I f...
https://stackoverflow.com/questions/77153819/telegram-login-widget-doesnt-render-in-react-spa-app
javascript, html, reactjs, widget, telegram
1,695,332,749
se_77804068
stackoverflow
FRONTEND_DEVELOPMENT
How can I set up a SignalR server in my C# application with a React frontend?
How can I set up a SignalR server in my C# application with a React frontend? I am new to all this SignalR. I have an application that uses a React frontend and C# backend. I need to start up a SignalR server that accepts messages and broadcasts the messages. So basically when I start the application, the SignalR serv...
https://stackoverflow.com/questions/77804068/how-can-i-set-up-a-signalr-server-in-my-c-application-with-a-react-frontend
c#, reactjs, asp.net-core, signalr, asp.net-core-signalr
1,705,027,272
se_76094743
stackoverflow
FRONTEND_DEVELOPMENT
My app opens index.html instead of index.jsx
My app opens index.html instead of index.jsx I created a page using React.jsx, and when I typed npm start the page opened index.jsx. However, I deleted index.html and then restored it to " public ", since then my page no longer opens index.jsx, but now it opens index.html (so the result is a white page, which when I w...
https://stackoverflow.com/questions/76094743/my-app-opens-index-html-instead-of-index-jsx
html, reactjs, npm, jsx, delete-file
1,682,358,776
se_75268942
stackoverflow
FRONTEND_DEVELOPMENT
try...catch needed in async call inside useEffect?
try...catch needed in async call inside useEffect? I'm trying to do some async stuff in a useEffect hook. So first I define the async function and second I'm calling that function. I am not quite sure how to handle errors correctly. Is the try...catch part also needed as the .catch of the function call? Isn't it the s...
https://stackoverflow.com/questions/75268942/try-catch-needed-in-async-call-inside-useeffect
javascript, reactjs, react-hooks, async-await, try-catch
1,674,921,309
se_79922960
stackoverflow
FRONTEND_DEVELOPMENT
ESLint &quot;Cannot access refs during render&quot; error but I am not accessing ref
ESLint &quot;Cannot access refs during render&quot; error but I am not accessing ref I am trying to pass a ref to a custom function, but I'm getting an ESLint error on dialog.ref from the react-hooks/refs rule of eslint-plugin-react-hooks. I am not sure why because I am not accessing ref.current here, just passing the...
https://stackoverflow.com/questions/79922960/eslint-cannot-access-refs-during-render-error-but-i-am-not-accessing-ref
javascript, reactjs, eslint, react-ref, eslint-plugin-react-hooks
1,775,751,251
se_29575359
stackoverflow
FRONTEND_DEVELOPMENT
Restore scroll position on back button
Restore scroll position on back button I have a route handler that requests data from a store and then maps over that data to render a list of components. My issue is that when I navigate to another page and then go back, the scroll position is not restored because the components have to be re-rendered. Is there anywa...
https://stackoverflow.com/questions/29575359/restore-scroll-position-on-back-button
reactjs, react-router, refluxjs
1,428,737,738
se_78336694
stackoverflow
FRONTEND_DEVELOPMENT
Error: Cannot find module @rollup/rollup-linux-x64-musl on docker container
Error: Cannot find module @rollup/rollup-linux-x64-musl on docker container I've set up a docker configuration to run my React app, but when starting the container, I encounter the following error: frontend-1 | failed to load config from /app/vite.config.ts frontend-1 | error when starting dev server: frontend-1 | ...
https://stackoverflow.com/questions/78336694/error-cannot-find-module-rollup-rollup-linux-x64-musl-on-docker-container
reactjs, docker, docker-compose, dockerfile, vite
1,713,292,531
se_76146642
stackoverflow
FRONTEND_DEVELOPMENT
When I do npm start after build in nextjs, I get an error. (Could not find a production build in the &quot;example/out&quot; directory
When I do npm start after build in nextjs, I get an error. (Could not find a production build in the &quot;example/out&quot; directory I got error after npm run build. (local build) error message is this. Could not find a production build in the '/Documents/nextjs_projects/project_name/out' directory. Try building you...
https://stackoverflow.com/questions/76146642/when-i-do-npm-start-after-build-in-nextjs-i-get-an-error-could-not-find-a-pro
reactjs, next.js, build, static, next.js13
1,682,941,371
se_77365777
stackoverflow
FRONTEND_DEVELOPMENT
How to avoid ESLint warning in React: Fast refresh only works when a file only exports components?
How to avoid ESLint warning in React: Fast refresh only works when a file only exports components? Task: I'm trying to use React.lazy function for dynamic loading of React components. Problem: I get the following ESLint warning: ESLint: Fast refresh only works when a file only exports components. Move your component(...
https://stackoverflow.com/questions/77365777/how-to-avoid-eslint-warning-in-react-fast-refresh-only-works-when-a-file-only-e
reactjs, eslint, lazy-loading
1,698,312,705
se_77799892
stackoverflow
FRONTEND_DEVELOPMENT
npm WARN ERESOLVE overriding peer dependency during npm install
npm WARN ERESOLVE overriding peer dependency during npm install While running npm install on my React app, I see below logs. However, the npm install completes and I can see deps added under node_modules Also, my app does start up. My question is if it is fine to ignore these warnings for now. npm WARN ERESOLVE overri...
https://stackoverflow.com/questions/77799892/npm-warn-eresolve-overriding-peer-dependency-during-npm-install
javascript, reactjs, npm, react-dom
1,704,974,650
se_77936725
stackoverflow
FRONTEND_DEVELOPMENT
Where to import &#39;reflect-metadata&#39; in Next.js 14.1.0
Where to import &#39;reflect-metadata&#39; in Next.js 14.1.0 I'm trying to use tsyringe for dependency injection in my Next.js 14.1.0 app. I'm using the new App Router. But for some reason it isn't working correctly when doing import 'reflect-metadata'; at the top of my Root Layout.. It's still throwing the following...
https://stackoverflow.com/questions/77936725/where-to-import-reflect-metadata-in-next-js-14-1-0
javascript, reactjs, next.js, tsyringe
1,707,065,761
se_71582492
stackoverflow
FRONTEND_DEVELOPMENT
React hook form - all fields are mandatory if any of the field is filled else optional
React hook form - all fields are mandatory if any of the field is filled else optional React hook form - form is completely optional or completely mandatory (if any of the field is filled). Please help the optimized way. Thanks.
https://stackoverflow.com/questions/71582492/react-hook-form-all-fields-are-mandatory-if-any-of-the-field-is-filled-else-op
javascript, reactjs, react-hook-form
1,648,015,418
se_61059198
stackoverflow
FRONTEND_DEVELOPMENT
Material-UI formControlLabel whole label is clickable only text should be
Material-UI formControlLabel whole label is clickable only text should be I am new to the material UI. here I have the following form <FormControl variant="outlined" className={css.formControl} margin="dense" key={"abc_" + index} > <FormControlLabel control={ <Checkbox onClick={handleClick...
https://stackoverflow.com/questions/61059198/material-ui-formcontrollabel-whole-label-is-clickable-only-text-should-be
javascript, html, reactjs, material-ui
1,586,173,981
se_78066282
stackoverflow
FRONTEND_DEVELOPMENT
AG Grid - Display Dropdown outside the grid boundary
AG Grid - Display Dropdown outside the grid boundary I am using React AgGrid and have a custom cell renderer that displays a dropdown. I can get the dropdown to display over the rows below but the dropdown clips at the bottom edge of the grid. How can I get the dropdown to show outside the bottom edge of AG Grid? A co...
https://stackoverflow.com/questions/78066282/ag-grid-display-dropdown-outside-the-grid-boundary
reactjs, dropdown, overflow, ag-grid
1,709,024,819
se_64558062
stackoverflow
FRONTEND_DEVELOPMENT
How to mock ResizeObserver to work in unit tests using react testing library
How to mock ResizeObserver to work in unit tests using react testing library If anyone can help, I have a custom hook that uses ResizeObserver to change the width of a component. My problem is that when I go to run my units test it breaks all my tests and looking at the snapshot it is not rendering all the elements in...
https://stackoverflow.com/questions/64558062/how-to-mock-resizeobserver-to-work-in-unit-tests-using-react-testing-library
reactjs, unit-testing, jestjs, react-testing-library, window-resize
1,603,813,724
se_79916215
stackoverflow
FRONTEND_DEVELOPMENT
MSAL React useMsalAuthentication causes infinite loop on Safari — stale interaction_in_progress
MSAL React useMsalAuthentication causes infinite loop on Safari — stale interaction_in_progress Problem I'm using @azure/msal-react with @azure/msal-browser v4.28.1 in a React + Vite app. Authentication works perfectly on Chrome and Firefox, but Safari falls into blocked state: errorCode: "interaction_in_progress" err...
https://stackoverflow.com/questions/79916215/msal-react-usemsalauthentication-causes-infinite-loop-on-safari-stale-interact
reactjs, msal
1,774,706,073
se_72524605
stackoverflow
FRONTEND_DEVELOPMENT
How do I use React Developer Tool&#39;s &quot;open in editor&quot; functionality?
How do I use React Developer Tool&#39;s &quot;open in editor&quot; functionality? OK let's say I have it configured with the default. How do I then open a component from the components tree in my editor? There's nothing on the right click menu: If you hover over all the icons on the right side none of them are anythi...
https://stackoverflow.com/questions/72524605/how-do-i-use-react-developer-tools-open-in-editor-functionality
javascript, reactjs, google-chrome, react-developer-tools
1,654,560,317
se_74963950
stackoverflow
FRONTEND_DEVELOPMENT
react hook form: useFieldArray circular reference type error
react hook form: useFieldArray circular reference type error I am trying to use the useFieldArray hook from react-hook-form with an object that has a recursive type definition. However, this causes a type error: Type of property 'children' circularly references itself in mapped type '{ [K in keyof TOrganization]-?: Ar...
https://stackoverflow.com/questions/74963950/react-hook-form-usefieldarray-circular-reference-type-error
reactjs, typescript, react-hook-form
1,672,419,292
se_53445921
stackoverflow
FRONTEND_DEVELOPMENT
Cannot read property &#39;muiName&#39; of undefined at t.isMuiElement?
Cannot read property &#39;muiName&#39; of undefined at t.isMuiElement? I have this problem when browse in chrome. Uncaught TypeError: Cannot read property 'muiName' of undefined at t.isMuiElement (reactHelpers.js:31) when I use <List> <ListItem> in <DialogContent> that error is showed. <DialogContent> <List> ...
https://stackoverflow.com/questions/53445921/cannot-read-property-muiname-of-undefined-at-t-ismuielement
reactjs, dialog, material-ui
1,542,972,741
se_76586465
stackoverflow
FRONTEND_DEVELOPMENT
How do I pre-render my React app created by Vite?
How do I pre-render my React app created by Vite? I am trying to prerender my Vite React app with the react-snap package. I have tried the procedure of prerendering with the following code. But it doesn't get build in production (I configured GitHub Actions for deployment). const Main = ( <React.StrictMode> ...
https://stackoverflow.com/questions/76586465/how-do-i-pre-render-my-react-app-created-by-vite
reactjs, vite, pre-rendering
1,688,105,585
se_79905346
stackoverflow
FRONTEND_DEVELOPMENT
React Native-cli DateTimePicker spinner not showing light theme on Android
React Native-cli DateTimePicker spinner not showing light theme on Android I am using @react-native-community/datetimepicker in a React Native application. I want to use the spinner style time picker with a light theme. My goal is to keep the UI clean, minimal, and consistent with a light theme. However, even after se...
https://stackoverflow.com/questions/79905346/react-native-cli-datetimepicker-spinner-not-showing-light-theme-on-android
reactjs, react-native, native, datetimepicker, react-native-cli
1,773,229,160
se_70005317
stackoverflow
FRONTEND_DEVELOPMENT
Pass HTML into custom Component
Pass HTML into custom Component I've created a custom component to simply layout content inside IonCardContent. This works great for my needs so far: interface ContainerProps { position?: string; content?: string, colour?: string; custClass?: string; } const CardContainer: React.FC<ContainerProps> = (...
https://stackoverflow.com/questions/70005317/pass-html-into-custom-component
reactjs, typescript, ionic-framework, ionic-react
1,637,155,914
se_70369224
stackoverflow
FRONTEND_DEVELOPMENT
Individual component exports with Rollup instead of one massive index.js file?
Individual component exports with Rollup instead of one massive index.js file? I’m working on a proprietary component library built with React and using Rollup to bundle everything. Currently, it’s bundling everything into these files: dist ├ cjs │ └ index.js (1.7mb) └ esm └ index.js (1.7mb) My hope is that I...
https://stackoverflow.com/questions/70369224/individual-component-exports-with-rollup-instead-of-one-massive-index-js-file
javascript, reactjs, rollup
1,639,596,036
se_74487273
stackoverflow
FRONTEND_DEVELOPMENT
ReactJS AssemblyAI Speaker Labeling Transcription
ReactJS AssemblyAI Speaker Labeling Transcription I want to know how can I include the speaker labelling in my sentiment analysis application using assemblyai API end-point. I'm having trouble on outputting the speaker label so I hope someone here could help. I'm using reactjs in this application. credits to: Marius E...
https://stackoverflow.com/questions/74487273/reactjs-assemblyai-speaker-labeling-transcription
javascript, reactjs, rest, sentiment-analysis
1,668,762,639
se_30156024
stackoverflow
FRONTEND_DEVELOPMENT
Creating dynamic table of contents in ReactJS
Creating dynamic table of contents in ReactJS I have a component that represents a Page with several SectionHeader components as children of that page. I want to dynamically create a table of contents by inspecting the children of Page that are SectionHeaders. <Page> <TaleOfContents sections={this.props.children} /...
https://stackoverflow.com/questions/30156024/creating-dynamic-table-of-contents-in-reactjs
reactjs
1,431,287,765
se_70935751
stackoverflow
FRONTEND_DEVELOPMENT
How to style a react Link component?
How to style a react Link component? When I try to style the Link component, it does not work: Link { padding: 0 30px; } But it does work when I use inline styling <Link style={{padding: '0 30px'}} to="/invoices">Invoices</Link> I use import './App.css' and styling normal elements like div does work.
https://stackoverflow.com/questions/70935751/how-to-style-a-react-link-component
css, reactjs
1,643,691,479
se_71047451
stackoverflow
FRONTEND_DEVELOPMENT
Styled component React checkbox doesn&#39;t appear
Styled component React checkbox doesn&#39;t appear I have a problem with my style. Checkbox doesn't appear even with a classical input. I tried lot of things, but bug still persist. I use styled-component, react-hook-form, TypeScript. //import tools import React, { FunctionComponent, useState } from "react"; import st...
https://stackoverflow.com/questions/71047451/styled-component-react-checkbox-doesnt-appear
reactjs, react-hooks, styled-components, react-hook-form, react-tsx
1,644,400,714
se_59012447
stackoverflow
FRONTEND_DEVELOPMENT
Why Is React Context.Provider Necessary (Or useful)?
Why Is React Context.Provider Necessary (Or useful)? The reason React has contexts is to allow for multiple sibling components to share a piece of state-data. It is the go-to method for allowing two unrelated components to read/write in shared variables. The reason it is necessary is that React has no way to easily so...
https://stackoverflow.com/questions/59012447/why-is-react-context-provider-necessary-or-useful
javascript, reactjs, react-redux, datacontext
1,574,544,449
se_77600623
stackoverflow
FRONTEND_DEVELOPMENT
Not-found page demands root-layout, meaning multiple root layouts not possible
Not-found page demands root-layout, meaning multiple root layouts not possible Rephrased my problem: The not-found page in my app dir requires a root-layout which I added to my app dir. But now I can no longer use multiple root layouts. Below structure simply does not work. How to fix? The not-found page can only be p...
https://stackoverflow.com/questions/77600623/not-found-page-demands-root-layout-meaning-multiple-root-layouts-not-possible
javascript, reactjs, typescript, next.js, next.js13
1,701,703,529
se_71047812
stackoverflow
FRONTEND_DEVELOPMENT
Invalid prop `data` supplied to `MaterialTable`, expected one of type [function]
Invalid prop `data` supplied to `MaterialTable`, expected one of type [function] I am working on a JHipster application, with data coming from Postgres SQL. The API is http://localhost:8080/api/agreements and I am trying to display the data in a React material table, but I am getting this error "Invalid prop data sup...
https://stackoverflow.com/questions/71047812/invalid-prop-data-supplied-to-materialtable-expected-one-of-type-function
reactjs, react-hooks, material-ui, jhipster
1,644,402,144
se_79363301
stackoverflow
FRONTEND_DEVELOPMENT
NextJS Tailwind Global.css parsing failure - removed issue but still unable to parse
NextJS Tailwind Global.css parsing failure - removed issue but still unable to parse I added some code into a tsx file that was trying to do a dynamic colour in Tailwind. However, when I tried to run it,it failed. I removed the code, but the global.css still fails to parse and I don't know how to re-parse the css. In ...
https://stackoverflow.com/questions/79363301/nextjs-tailwind-global-css-parsing-failure-removed-issue-but-still-unable-to-p
reactjs, next.js, tailwind-css
1,737,070,037
se_63193114
stackoverflow
FRONTEND_DEVELOPMENT
How do I call a function automatically when page loads up in React JS ?(in 2020)
How do I call a function automatically when page loads up in React JS ?(in 2020) I am trying to get the array of Notes from a MongoDB server. An example of the notes response is below. { "_id" : ObjectId("5f240b9ab414f1377c4155e0"), "title" : "...", "content" : "...", "__v" : 0 } { "_id" : ObjectI...
https://stackoverflow.com/questions/63193114/how-do-i-call-a-function-automatically-when-page-loads-up-in-react-js-in-2020
javascript, reactjs, mongodb
1,596,203,367
se_79899598
stackoverflow
FRONTEND_DEVELOPMENT
Avoiding delay when using search params as state
Avoiding delay when using search params as state I noticed when deriving state using Route.useSearch(), and updating state using Route.useNavigate, there is a delay when updating state. Is there guidance on how to do this optimally? So far I'm keeping state in a useState, and syncing state using a useEffect function u...
https://stackoverflow.com/questions/79899598/avoiding-delay-when-using-search-params-as-state
javascript, reactjs, tanstack
1,772,472,621
se_74759209
stackoverflow
FRONTEND_DEVELOPMENT
How to style react native for multiple different devices and operating systems
How to style react native for multiple different devices and operating systems I am relatively new to react native and am not looking for actual code however I am wondering the best way to implement layouts/ styling of a page so that it looks the same proportion wise across multiple different devices and operating sys...
https://stackoverflow.com/questions/74759209/how-to-style-react-native-for-multiple-different-devices-and-operating-systems
android, ios, reactjs, react-native, expo
1,670,745,752
se_79919002
stackoverflow
FRONTEND_DEVELOPMENT
How to implement an interactive alumni map with clustering and sidebar in React (Leaflet or Mapbox)?
How to implement an interactive alumni map with clustering and sidebar in React (Leaflet or Mapbox)? I am building an alumni networking web application where I want to display alumni locations on a global map along with a sidebar list. I want to implement the following features: A world map with markers representing ...
https://stackoverflow.com/questions/79919002/how-to-implement-an-interactive-alumni-map-with-clustering-and-sidebar-in-react
reactjs, node.js, google-maps-api-3, leaflet, mapbox
1,775,130,411
se_61238680
stackoverflow
FRONTEND_DEVELOPMENT
Access to fetch at from origin &#39;http://localhost:3000&#39; has been blocked by CORS policy
Access to fetch at from origin &#39;http://localhost:3000&#39; has been blocked by CORS policy Adding to the database shows the error. What should I do? Access to fetch at 'http:xxx' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: N...
https://stackoverflow.com/questions/61238680/access-to-fetch-at-from-origin-http-localhost3000-has-been-blocked-by-cors
javascript, reactjs
1,586,985,049
se_51704263
stackoverflow
FRONTEND_DEVELOPMENT
react request error catching
react request error catching I am trying to catch errors in my http response. I am using React-redux as frontend. So first of all I have a simple request handling, where I check status of every request and according to status code I return response or throw error: function checkStatus(response) { if (response.statu...
https://stackoverflow.com/questions/51704263/react-request-error-catching
reactjs, redux-saga
1,533,547,066
se_44828940
stackoverflow
FRONTEND_DEVELOPMENT
Webpack with babel-loader doesn&#39;t recognize Typescript
Webpack with babel-loader doesn&#39;t recognize Typescript I am using webpack and trying to leverage an existing React component library written in TS. However, with the settings below, the webpack is giving 'unexpected Token' error. I copied the problematic code to babel online transpiler https://babeljs.io/repl/ bu...
https://stackoverflow.com/questions/44828940/webpack-with-babel-loader-doesnt-recognize-typescript
reactjs, typescript, webpack, babeljs, babel-loader
1,498,749,059
se_65573579
stackoverflow
FRONTEND_DEVELOPMENT
how to fix npm audit error with loadVirtual and ENOLOCK?
how to fix npm audit error with loadVirtual and ENOLOCK? ➜ npm audit npm ERR! code ENOLOCK npm ERR! audit This command requires an existing lockfile. npm ERR! audit Try creating one first with: npm i --package-lock-only npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file I ran npm audit and...
https://stackoverflow.com/questions/65573579/how-to-fix-npm-audit-error-with-loadvirtual-and-enolock
javascript, node.js, reactjs, npm
1,609,823,499
se_79918872
stackoverflow
FRONTEND_DEVELOPMENT
Does a React Activity component in mode visible set by default improve performance?
Does a React Activity component in mode visible set by default improve performance? I often come to this case were I render both ExtendedView and CompactView for a component. Those have a display: none css rule based on a container query. I know that the ExtendedView is more likely to be visible as our user mostly use...
https://stackoverflow.com/questions/79918872/does-a-react-activity-component-in-mode-visible-set-by-default-improve-performan
javascript, reactjs
1,775,115,761
se_77016034
stackoverflow
FRONTEND_DEVELOPMENT
What is JSX, when is it used, and why is it used
What is JSX, when is it used, and why is it used I'm learning React and I keep on hearing the phrase JSX. I've tried watching videos about it but I still don't understand what it is. I've also had a look at the documentation but my head is still scrambled I've had a look at JSX and to me it just looks like regular HTM...
https://stackoverflow.com/questions/77016034/what-is-jsx-when-is-it-used-and-why-is-it-used
javascript, reactjs, jsx
1,693,486,554
se_69761621
stackoverflow
FRONTEND_DEVELOPMENT
PostCSS error &quot;tailwindcss requires PostCSS 8&quot; when npm start
PostCSS error &quot;tailwindcss requires PostCSS 8&quot; when npm start My project keeps getting the error PostCSS plugin tailwindcss requires PostCSS 8 when npm start. This case is the same, but now it's old and nothing works. PostCSS 8 now should be compatible with Tailwind and CRA, so I installed the latest version...
https://stackoverflow.com/questions/69761621/postcss-error-tailwindcss-requires-postcss-8-when-npm-start
reactjs, create-react-app, tailwind-css, postcss, autoprefixer
1,635,459,856
se_55543905
stackoverflow
FRONTEND_DEVELOPMENT
Deep Linking with react-navigation does not work
Deep Linking with react-navigation does not work Actually, I'm developing an app on react-native 0.58 with react-navigation 3.1.5, and I can't make my app run properly. This is my code: app-navigation.js const MainStack = createBottomTabNavigator({ Home: { screen: Home }, Pets: { screen: Pets, path: 'spidersecu...
https://stackoverflow.com/questions/55543905/deep-linking-with-react-navigation-does-not-work
javascript, reactjs, react-native, react-navigation, deep-linking
1,554,501,675
se_79917668
stackoverflow
FRONTEND_DEVELOPMENT
How relevant is Angular in 2026 compared to React, and does learning both help my resume?
How relevant is Angular in 2026 compared to React, and does learning both help my resume? My instructor recently asked me to learn Angular, but my last project was built with React. I’m a junior web developer and I’m trying to understand how relevant Angular is in today’s frontend job market compared to React. From wh...
https://stackoverflow.com/questions/79917668/how-relevant-is-angular-in-2026-compared-to-react-and-does-learning-both-help-m
reactjs, angular, frontend
1,774,950,006
se_79918476
stackoverflow
FRONTEND_DEVELOPMENT
How to pause and play video using JavaScript in React web project?
How to pause and play video using JavaScript in React web project? How can I pause and play a video using JavaScript in my React web project? I'm developing it in VS Code.
https://stackoverflow.com/questions/79918476/how-to-pause-and-play-video-using-javascript-in-react-web-project
javascript, reactjs, web, video
1,775,056,179
se_75482384
stackoverflow
FRONTEND_DEVELOPMENT
Vitest config doesn&#39;t detect jsdom environment
Vitest config doesn&#39;t detect jsdom environment I'm in a Vite/React/TypeScript application and I'm configuring my first test with Vitest. When I run my Button test (yarn vitest), I get this error: packages/frontend/src/components/Generic/Button/Button.test.tsx > Button > should render the button ReferenceError: doc...
https://stackoverflow.com/questions/75482384/vitest-config-doesnt-detect-jsdom-environment
reactjs, typescript, vite, jsdom, vitest
1,676,626,007
se_79562850
stackoverflow
FRONTEND_DEVELOPMENT
React Suspense fallback not showing until I add a key
React Suspense fallback not showing until I add a key Sometimes I have come across when someone pairs Suspense and a key prop - even the official tutorial of Next.js has it: <Suspense key={query + currentPage} fallback={<InvoicesTableSkeleton />}> <Table query={query} currentPage={currentPage} /> </Suspense> In...
https://stackoverflow.com/questions/79562850/react-suspense-fallback-not-showing-until-i-add-a-key
reactjs, react-suspense
1,744,138,378
se_67583465
stackoverflow
FRONTEND_DEVELOPMENT
NEXT.JS - Error: Export encountered errors on following paths: /blogs/:post
NEXT.JS - Error: Export encountered errors on following paths: /blogs/:post I try to next export : Error occurred prerendering page "/blogs/[post]". Read more: https://err.sh/next.js/prerender-error Error: Error for page /blogs/[post]: pages with getServerSideProps can not be exported. See more info here: https://err...
https://stackoverflow.com/questions/67583465/next-js-error-export-encountered-errors-on-following-paths-blogs-post
javascript, node.js, reactjs, next.js
1,621,329,952
se_72786163
stackoverflow
FRONTEND_DEVELOPMENT
Next.js, why? Warning: Prop `style` did not match. Server: &quot;object-fit: cover;&quot; Client: &quot;object-fit:cover&quot;
Next.js, why? Warning: Prop `style` did not match. Server: &quot;object-fit: cover;&quot; Client: &quot;object-fit:cover&quot; I got this error, strange: next-dev.js?3515:25 Warning: Prop `style` did not match. Server: "object-fit: cover;" Client: "object-fit:cover" ^^ and to componenet, what is wrong? import Image f...
https://stackoverflow.com/questions/72786163/next-js-why-warning-prop-style-did-not-match-server-object-fit-cover
reactjs, next.js
1,656,418,098
se_77119927
stackoverflow
FRONTEND_DEVELOPMENT
React Table Generation Issue: Array.fill() vs. Array.from()
React Table Generation Issue: Array.fill() vs. Array.from() I'm attempting to create a table generator in React using the provided code. I'm curious about why it doesn't work as expected. When I replace Array().fill with Array.from(), it functions correctly. I understand that there might be an issue with Array.fill(),...
https://stackoverflow.com/questions/77119927/react-table-generation-issue-array-fill-vs-array-from
javascript, reactjs, arrays
1,694,905,752
se_69896576
stackoverflow
FRONTEND_DEVELOPMENT
Failing to attach event listener to window object in nextjs
Failing to attach event listener to window object in nextjs Can someone please why can I not attach an event listener to window object in nextjs? When I try 'resize' event, everything works fine, but with 'load' event it seems 'load' event is not recognized' import { useEffect } from "react"; export default function ...
https://stackoverflow.com/questions/69896576/failing-to-attach-event-listener-to-window-object-in-nextjs
javascript, reactjs, next.js
1,636,453,992
se_79916856
stackoverflow
FRONTEND_DEVELOPMENT
&quot;hello chat&quot; Door
&quot;hello chat&quot; Door I'm working on some projects in Python and JS. Lately, I decided to speed up the creation process, only stopping to fix bugs. I found an image in the root of my backend saying "hello chat" with a door in the background. What could this be?
https://stackoverflow.com/questions/79916856/hello-chat-door
javascript, python, reactjs, image
1,774,841,984
se_79906397
stackoverflow
FRONTEND_DEVELOPMENT
Cannot deploy Tanstack Start React app to Cloudflare using GitHub Actions
Cannot deploy Tanstack Start React app to Cloudflare using GitHub Actions I have developed a React application with Tanstack Start framework. I have also successfully deployed the page to Cloudflare, using CLI commands: npm run build npx wrangler deploy In order to automate it, I have defined a GitHub Actions workflo...
https://stackoverflow.com/questions/79906397/cannot-deploy-tanstack-start-react-app-to-cloudflare-using-github-actions
reactjs, cloudflare, tanstack, wrangler, tanstack-start
1,773,335,691
se_55795125
stackoverflow
FRONTEND_DEVELOPMENT
How to send email from my react web application
How to send email from my react web application i have a single email input field and a button in my app. once i enter the email and click send i would like to send an email with the value entered in the input. i know it cant be done in Reactjs because it is a frontend. How can i do? can someone help?
https://stackoverflow.com/questions/55795125/how-to-send-email-from-my-react-web-application
node.js, reactjs
1,555,939,549
se_79917235
stackoverflow
FRONTEND_DEVELOPMENT
Can you access a React component&#39;s children of children (nested children)?
Can you access a React component&#39;s children of children (nested children)? In the react reference documentation for the Children API(#transforming-children Scroll down to "Pitfall") it says: There is no way to get the rendered output of an inner component like <MoreRows /> when manipulating children. This is why...
https://stackoverflow.com/questions/79917235/can-you-access-a-react-components-children-of-children-nested-children
javascript, reactjs, react-children
1,774,887,649
se_79917222
stackoverflow
FRONTEND_DEVELOPMENT
React compiler and Jest tests
React compiler and Jest tests I added the React Compiler to my project (basic setup from docs), and my all Jest tests failed. Would it be better to disable the React Compiler for tests, or is there a way to fix this? How to do it? Do you know where I can find examples for that case?
https://stackoverflow.com/questions/79917222/react-compiler-and-jest-tests
reactjs, jestjs, react-compiler
1,774,886,418
se_79291319
stackoverflow
FRONTEND_DEVELOPMENT
Warning: React instrumentation encountered an error: Error: The children should not have changed if we pass in the same set - nextjs
Warning: React instrumentation encountered an error: Error: The children should not have changed if we pass in the same set - nextjs I get this error message in console while switiching from one page to another. I dont think I am using the same component in both pages I think it is a new error which might come with re...
https://stackoverflow.com/questions/79291319/warning-react-instrumentation-encountered-an-error-error-the-children-should
javascript, reactjs, next.js, frontend, components
1,734,529,565
se_79661594
stackoverflow
FRONTEND_DEVELOPMENT
How to set meta charset to utf-16 instead of utf-8 in Next.js?
How to set meta charset to utf-16 instead of utf-8 in Next.js? I'm working on a Next.js application (currently using version 15.3.2) and I'm looking to ensure the charset meta tag is correctly set in the HTML head. Typically, in a standard HTML file, I would just include <meta charset="utf-16"> within the <head> tag. ...
https://stackoverflow.com/questions/79661594/how-to-set-meta-charset-to-utf-16-instead-of-utf-8-in-next-js
reactjs, next.js, character-encoding, app-router
1,749,627,954
se_79916392
stackoverflow
FRONTEND_DEVELOPMENT
I want to make a conditional component in React but didnt work, What am I doing wrong?
I want to make a conditional component in React but didnt work, What am I doing wrong? I have code like this, and it works: {(users.length === 0) ? (<></>) : ( <Pagination sx={{ mt: '1rem' }} page={page} count={pagination.last_page} onChange={handleChangePage} /> )} But I want to h...
https://stackoverflow.com/questions/79916392/i-want-to-make-a-conditional-component-in-react-but-didnt-work-what-am-i-doing
javascript, reactjs
1,774,737,421
se_79911502
stackoverflow
FRONTEND_DEVELOPMENT
How do I import a different implementation of an interface on client vs server in React Router?
How do I import a different implementation of an interface on client vs server in React Router? I am replacing the logging system in a large React Router application and the challenge I have is that I want to use a different logger depending on whether the code is running on the server or the client, but I want the lo...
https://stackoverflow.com/questions/79911502/how-do-i-import-a-different-implementation-of-an-interface-on-client-vs-server-i
javascript, reactjs, vite
1,774,026,105
se_64742287
stackoverflow
FRONTEND_DEVELOPMENT
Background image not showing up with React + TailwindCSS
Background image not showing up with React + TailwindCSS I'm trying to use Tailwind with React to show a background image. My config is like the follow: const white_bg = require("../../assets/images/wave_light.svg"); // Import using relative path const black_bg = require("../../assets/images/wave_black.svg"); // Impor...
https://stackoverflow.com/questions/64742287/background-image-not-showing-up-with-react-tailwindcss
html, css, reactjs, tailwind-css, tailwind-css-3
1,604,864,436
se_76272840
stackoverflow
FRONTEND_DEVELOPMENT
How do I make ScriptTagger.js file re-run after updating the dom in react?
How do I make ScriptTagger.js file re-run after updating the dom in react? I want to use the following websites file: https://www.blueletterbible.org/webtools/BLB_ScriptTagger.cfm In the Website / Non-Wordpress Blog Installation section I have added the script in index.html as well as in the helmet and it works only w...
https://stackoverflow.com/questions/76272840/how-do-i-make-scripttagger-js-file-re-run-after-updating-the-dom-in-react
reactjs, react-hooks
1,684,331,233
se_53635696
stackoverflow
FRONTEND_DEVELOPMENT
toLowerCase on TextInput value is creating duplicate text if capital letter created
toLowerCase on TextInput value is creating duplicate text if capital letter created This one's an interesting one. I created a TextInput that takes a value, then lower cases it, adds it to state, and sets it as the default value. On my android physical device, if you force a capital letter ( autocapitalize is set to...
https://stackoverflow.com/questions/53635696/tolowercase-on-textinput-value-is-creating-duplicate-text-if-capital-letter-crea
android, reactjs, react-native
1,544,023,954
se_67421601
stackoverflow
FRONTEND_DEVELOPMENT
react-hook-form onSubmit not triggered
react-hook-form onSubmit not triggered import React, { useState } from "react"; import FileBase64 from "react-file-base64"; import { useDispatch } from "react-redux"; import { makeStyles } from "@material-ui/core/styles"; import { TextField, Select, Input, MenuItem, Button } from "@material-ui/core"; import { useForm,...
https://stackoverflow.com/questions/67421601/react-hook-form-onsubmit-not-triggered
javascript, reactjs, material-ui, react-hook-form
1,620,315,922
se_78467700
stackoverflow
FRONTEND_DEVELOPMENT
Best way to crate a simple blog website using using Next.js (MDX or Data fetching)?
Best way to crate a simple blog website using using Next.js (MDX or Data fetching)? I want to create a blog website to write life and code blog, with the rsc and supported meta content like ranking with the google and apple bot with dynamic OG image. next.js is the framework provides lot of features, but want to creat...
https://stackoverflow.com/questions/78467700/best-way-to-crate-a-simple-blog-website-using-using-next-js-mdx-or-data-fetchin
reactjs, next.js, dynamic-programming, server-side-rendering, rehype
1,715,514,057
se_51846281
stackoverflow
FRONTEND_DEVELOPMENT
How do I update state with axios put request on my React application?
How do I update state with axios put request on my React application? I've been reviewing my HTTP/AJAX project and was able to implement my get, post and delete. But I tried to implement the put request on my own and have been stuck on it for two days (I know). My understanding is that there should be the axios reques...
https://stackoverflow.com/questions/51846281/how-do-i-update-state-with-axios-put-request-on-my-react-application
javascript, node.js, reactjs, axios
1,534,265,348
se_56964878
stackoverflow
FRONTEND_DEVELOPMENT
Rendering static webpage via github.io not working - for a website created with gatsby / hosted on netlify from a github repo
Rendering static webpage via github.io not working - for a website created with gatsby / hosted on netlify from a github repo I wanted to use a personal-website template for my github.io profile that I found at this link - https://github.com/bchiang7/v4 . I personalized it and hosted it on netlify.com at this link - h...
https://stackoverflow.com/questions/56964878/rendering-static-webpage-via-github-io-not-working-for-a-website-created-with
reactjs, github, yarnpkg, gatsby, netlify
1,562,741,464
se_74390015
stackoverflow
FRONTEND_DEVELOPMENT
How to do multiple bundles with vite?
How to do multiple bundles with vite? Using vite js to bundle my library, I need to provide two versions at the same time: production usage development specific code and warnings with devtools integration. When I was using webpack, I had: module.exports = [ defaultUmdBuild("production"), defaultUmdBuild("develop...
https://stackoverflow.com/questions/74390015/how-to-do-multiple-bundles-with-vite
reactjs, webpack, vite, rollup, esbuild
1,668,087,766
se_51002481
stackoverflow
FRONTEND_DEVELOPMENT
Images not loading when deploying to Github pages
Images not loading when deploying to Github pages I am using create-react-app to develop my react app and deploy it to Github pages. My app works correctly on development. But when I deploy, it successfully deploys but the background image failed to load. loading background image in a index.css file: body::after { ...
https://stackoverflow.com/questions/51002481/images-not-loading-when-deploying-to-github-pages
reactjs, github-pages, create-react-app
1,529,766,938
se_72964629
stackoverflow
FRONTEND_DEVELOPMENT
React, Calling a function from another component
React, Calling a function from another component As stated in the question I want to call a function declared in another component. Here's some example data, function BookingTable() { const renderTableData = (startId) => { let id = startId; } } export default BookingTable; How do i access the renderTableData...
https://stackoverflow.com/questions/72964629/react-calling-a-function-from-another-component
reactjs
1,657,707,548