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_79900576 | stackoverflow | FRONTEND_DEVELOPMENT | Just created an application for job enchancement | Just created an application for job enchancement
I recently built a web app called Role Accel that helps people practice for tech interviews using AI.
Some of the features include:
- AI-powered mock interviews where the system plays the role of a hiring manager
- A “Concept Arcade” that generates technical quizzes
- A... | https://stackoverflow.com/questions/79900576/just-created-an-application-for-job-enchancement | reactjs | 1,772,593,824 |
se_30294870 | stackoverflow | FRONTEND_DEVELOPMENT | How to configure ESLint for React in the Atom editor | How to configure ESLint for React in the Atom editor
In the Atom editor, I installed the following plugins
linter
linter-eslint
It seems they don't recognize the JSX syntax.
I have it working on the command line, but I had to use other plugins, like esprima-fb and eslint-plugin-react. It looks like there aren’t any ... | https://stackoverflow.com/questions/30294870/how-to-configure-eslint-for-react-in-the-atom-editor | atom-editor, reactjs, eslint | 1,431,921,350 |
se_79130376 | stackoverflow | FRONTEND_DEVELOPMENT | @react-pdf/renderer how to build for node when using renderToStream | @react-pdf/renderer how to build for node when using renderToStream
I am trying to build (bundle) an app that uses @react-pdf/renderer with vite. Then that bundle will be used in different node express app (like a library).
I export some functions that can be used in node, like:
export const getPdf = () => renderToStr... | https://stackoverflow.com/questions/79130376/react-pdf-renderer-how-to-build-for-node-when-using-rendertostream | reactjs, build, vite, react-pdf, react-pdfrenderer | 1,730,025,548 |
se_79255615 | stackoverflow | FRONTEND_DEVELOPMENT | Why is ReactPDF.renderToBuffer not a function in @react-pdf/renderer? | Why is ReactPDF.renderToBuffer not a function in @react-pdf/renderer?
I’m trying to generate a PDF using @react-pdf/renderer, and I want to directly render the PDF to a Buffer for further processing (e.g., saving it to a file or sending it as an HTTP response). However, when I call ReactPDF.renderToBuffer, I get the f... | https://stackoverflow.com/questions/79255615/why-is-reactpdf-rendertobuffer-not-a-function-in-react-pdf-renderer | reactjs, typescript, react-native, next.js, react-pdf | 1,733,418,163 |
se_79528170 | stackoverflow | FRONTEND_DEVELOPMENT | Render a pdf in react that supports multiple languages and download it | Render a pdf in react that supports multiple languages and download it
I was using '@react-pdf/renderer' to create a pdf and download it but I could not find a way to support multiple languages with it. That is one pdf file could have strings in multiple languages but with '@react-pdf/renderer' it would always have to... | https://stackoverflow.com/questions/79528170/render-a-pdf-in-react-that-supports-multiple-languages-and-download-it | reactjs, pdf, react-pdf | 1,742,679,909 |
se_79274720 | stackoverflow | FRONTEND_DEVELOPMENT | PDF rendering issues with multilingual text across different languages in a PDF generation library like pdf-lib | PDF rendering issues with multilingual text across different languages in a PDF generation library like pdf-lib
I am generating PDFs in my project using libraries such as @react-pdf/renderer and pdf-lib, and I am encountering significant challenges with font compatibility for multilingual text. In my use case, parts o... | https://stackoverflow.com/questions/79274720/pdf-rendering-issues-with-multilingual-text-across-different-languages-in-a-pdf | reactjs, pdf, pdf-generation, react-pdf | 1,733,999,151 |
se_68671887 | stackoverflow | FRONTEND_DEVELOPMENT | Create PayPal Transaction with checkout-server-sdk and react-paypal-js | Create PayPal Transaction with checkout-server-sdk and react-paypal-js
I'm currently using @paypal/react-paypal-js components within my React SPA.
<PayPalScriptProvider options={options}>
<PayPalButtons
fundingSource={FUNDING.PAYPAL}
style={{ color: "blue", shape: ... | https://stackoverflow.com/questions/68671887/create-paypal-transaction-with-checkout-server-sdk-and-react-paypal-js | reactjs, paypal | 1,628,188,542 |
se_78015412 | stackoverflow | FRONTEND_DEVELOPMENT | Next.js - Framer motion : Attempted import error: 'useState' is not exported from 'react' (imported as 'useState') | Next.js - Framer motion : Attempted import error: 'useState' is not exported from 'react' (imported as 'useState')
I am working on a next.js project where I want to use framer-motion. I have just started the project, and am facing an issue in installing and using framer-motion. I am trying to c... | https://stackoverflow.com/questions/78015412/next-js-framer-motion-attempted-import-error-usestate-is-not-exported-fro | reactjs, node.js, next.js, node-modules, framer-motion | 1,708,253,087 |
se_79900025 | stackoverflow | FRONTEND_DEVELOPMENT | Zod v4 parse path params always string? | Zod v4 parse path params always string?
I'm using @tanstack/zod-adapter for parsing path params:
export const Route = createFileRoute(
"/route/$one/$two/$three",
)({
params: zodValidator(
z.object({
one: z.number(),
two: z.string(),
three: z.string(),
}),
)},
component: RouteComponent... | https://stackoverflow.com/questions/79900025/zod-v4-parse-path-params-always-string | reactjs, typescript, tanstack, tanstack-router | 1,772,531,696 |
se_78579948 | stackoverflow | FRONTEND_DEVELOPMENT | Erlang/OTP with elixir fails | Erlang/OTP with elixir fails
I am trying to set elixir up as a back-end for React, and I have done a bunch of stuff to get it running. I cannot seem to make it work.
"10:09:43.125 [error] beam/beam_load.c(206): Error loading module 'Elixir.Hex':
This BEAM file was compiled for an old version of the runtime system.
... | https://stackoverflow.com/questions/78579948/erlang-otp-with-elixir-fails | reactjs, npm, erlang, elixir, erlang-otp | 1,717,579,060 |
se_79839390 | stackoverflow | FRONTEND_DEVELOPMENT | Zod email validation issue | Zod email validation issue
Issue
I'm working on a React application and wanted to try the newest version of Zod (4.1.13) for input validations along with react hook form. I've been struggling with the z.email() function as it's not displaying the correct message when the user tries to submit the form with no values at... | https://stackoverflow.com/questions/79839390/zod-email-validation-issue | reactjs, react-hook-form, zod | 1,764,979,120 |
se_79899372 | stackoverflow | FRONTEND_DEVELOPMENT | How can I update field state directly, quickly from AI stream? | How can I update field state directly, quickly from AI stream?
I'm working on a text editor with my editor input being a react-hook-form field. I also have an AI writing assistant that streams text from the back-end that I need to update the input as it streams. This is what I tried:
const { setValue, getValues } = us... | https://stackoverflow.com/questions/79899372/how-can-i-update-field-state-directly-quickly-from-ai-stream | reactjs, react-hook-form, tanstack | 1,772,449,528 |
se_57078732 | stackoverflow | FRONTEND_DEVELOPMENT | MUI Fade component does not show, hide, or fade components | MUI Fade component does not show, hide, or fade components
I switched child components from conditional rendering to being wrapped by <Fade /> but Fade doesn't work at all, both components always display. Here is the current code:
// inside top level component
{/*{adminView === bodyViews.addNewCoupon &&*/}
<Fade
in=... | https://stackoverflow.com/questions/57078732/mui-fade-component-does-not-show-hide-or-fade-components | reactjs, material-ui | 1,563,375,179 |
se_79894009 | stackoverflow | FRONTEND_DEVELOPMENT | Deploying Django backend and React frontend completely free — production-ready options? | Deploying Django backend and React frontend completely free — production-ready options?
I have a Django backend (REST API) and a React frontend.
I want to deploy this project for a portfolio, but I would prefer to use only free hosting options (no paid subscriptions).
Requirements:
- Free hosting for Django backend
- ... | https://stackoverflow.com/questions/79894009/deploying-django-backend-and-react-frontend-completely-free-production-ready-o | reactjs, django, deployment, hosting | 1,771,770,854 |
se_60491911 | stackoverflow | FRONTEND_DEVELOPMENT | Create a mutlple email field input in react.js | Create a mutlple email field input in react.js
I am new to react and would like to create an entry field where a user can enter multiple email address
So far, I have an email field
<TextValidator
id="email"
aria-label="email"
label="Email address used to register"
required
name="email"
... | https://stackoverflow.com/questions/60491911/create-a-mutlple-email-field-input-in-react-js | reactjs | 1,583,162,643 |
se_78061040 | stackoverflow | FRONTEND_DEVELOPMENT | How to Integrate ChatBot on an existing WordPress website? | How to Integrate ChatBot on an existing WordPress website?
I am tying to integrate my ChatBot in my existing wordpress website. The ChatBot created using Vite React JS and I have dist folder, public folder. For now I wrapped my Wordpress site in React JS code using iframe but now I want to integrate my ChatBot in Word... | https://stackoverflow.com/questions/78061040/how-to-integrate-chatbot-on-an-existing-wordpress-website | reactjs, wordpress, content-management-system | 1,708,951,849 |
se_63991074 | stackoverflow | FRONTEND_DEVELOPMENT | Uncaught Reference error React is not defined | Uncaught Reference error React is not defined
I am getting the following error
external_"react":1 Uncaught ReferenceError: react is not defined
at eval (external_"react":1)
at Object.react (bundle.js:120)
at __webpack_require__ (bundle.js:20)
at eval (client.js:2)
at Module../src/client.js (bundle.js:97)
at __webpack_... | https://stackoverflow.com/questions/63991074/uncaught-reference-error-react-is-not-defined | reactjs, webpack | 1,600,686,583 |
se_77626440 | stackoverflow | FRONTEND_DEVELOPMENT | How to word wrap and remove hyphen in react pdf? | How to word wrap and remove hyphen in react pdf?
I am rendering an email and it shows like this:
but the actual email has no - in it.
when I do:
Font.registerHyphenationCallback((word) => {
// Return entire word as unique part
return [word]
})
this just causes the email to go off the edge of the page
What... | https://stackoverflow.com/questions/77626440/how-to-word-wrap-and-remove-hyphen-in-react-pdf | javascript, reactjs, react-pdf | 1,702,037,318 |
se_79897359 | stackoverflow | FRONTEND_DEVELOPMENT | fetching from an API in react | fetching from an API in react
so to fetch from an API in react we can either use the useEffect(), or a combination of useEffect() and useCallback(), but there is a very annoying problem that I see most of the time where we get requests duplication, even though StrictMode was already remvoed from main.tsx, then you sta... | https://stackoverflow.com/questions/79897359/fetching-from-an-api-in-react | javascript, reactjs, fetch-api, react-query | 1,772,136,971 |
se_52831894 | stackoverflow | FRONTEND_DEVELOPMENT | Electron application can't resolve 'greenworks-linux32' on Steamworks integration | Electron application can't resolve 'greenworks-linux32' on Steamworks integration
I have html5 application built for desktop with Electron. I currently try to integrate Greenworks SDK for Steamworks SDK to support achievements in it.
I tried both electron-rebuild and node-gyp ways to integrate Greenworks ... | https://stackoverflow.com/questions/52831894/electron-application-cant-resolve-greenworks-linux32-on-steamworks-integratio | javascript, reactjs, electron, steam, steamworks-api | 1,539,680,996 |
se_79897129 | stackoverflow | FRONTEND_DEVELOPMENT | Architectural differences between Laravel + Inertia (Vue) and Laravel API + React SPA | Architectural differences between Laravel + Inertia (Vue) and Laravel API + React SPA
I am building a Laravel 11 backend for a job portal application with real-time features and REST APIs. I am deciding between Vue 3 and React 18 for the frontend. Considering ecosystem support, integration with Laravel (Sanctum, Inert... | https://stackoverflow.com/questions/79897129/architectural-differences-between-laravel-inertia-vue-and-laravel-api-reac | reactjs, laravel, vue.js, single-page-application, inertiajs | 1,772,116,491 |
se_64547044 | stackoverflow | FRONTEND_DEVELOPMENT | Persist localStorage with useReducer | Persist localStorage with useReducer
I have a mini shopping cart application that uses useState. I now want to refactor the application's state to be managed by useReducer and continue to persist data with localStorage.
I'm having trouble figuring out how to refactor, with the many moving pieces involved. How do I go ... | https://stackoverflow.com/questions/64547044/persist-localstorage-with-usereducer | reactjs, react-hooks, local-storage, use-reducer | 1,603,761,090 |
se_75907186 | stackoverflow | FRONTEND_DEVELOPMENT | TS Error for Luxon DateTime: Cannot use namespace 'DateTime' as a type | TS Error for Luxon DateTime: Cannot use namespace 'DateTime' as a type
I've imported both luxon and types/luxon and whenever I try and set the type to luxons 'DateTime' object I get the error DateTime: Cannot use namespace 'DateTime' as a type.
Here is some example code of setting the type to DateTime when the... | https://stackoverflow.com/questions/75907186/ts-error-for-luxon-datetime-cannot-use-namespace-datetime-as-a-type | javascript, reactjs, typescript, luxon | 1,680,363,344 |
se_71950882 | stackoverflow | FRONTEND_DEVELOPMENT | Sentry reported an error: Invalid token (http status: 401) - Sentry NextJs | Sentry reported an error: Invalid token (http status: 401) - Sentry NextJs
After integration sentry in my project the dev environment works fine but when I try to build the project with yarn build i face this error.
Sentry CLI Plugin: Command failed: /Users/ishman/Desktop/sh/web-speedhome/node_modules/@sentry/cli/sen... | https://stackoverflow.com/questions/71950882/sentry-reported-an-error-invalid-token-http-status-401-sentry-nextjs | reactjs, next.js, sentry | 1,650,528,195 |
se_74093363 | stackoverflow | FRONTEND_DEVELOPMENT | How can I make npm start open into a different browser | How can I make npm start open into a different browser
On my pc the default browser is Firefox but I want to open my react projects on Chrome. I tried changing the script in package.json as "start": "BROWSER=chrome react-scripts start".
I also tried putting chrome inside single quotes. I even tried creating a .env fil... | https://stackoverflow.com/questions/74093363/how-can-i-make-npm-start-open-into-a-different-browser | reactjs, create-react-app, npm-start | 1,665,988,621 |
se_79896201 | stackoverflow | FRONTEND_DEVELOPMENT | React/Pixi Rendering a Filter Texture over a sprite container throws off alignment | React/Pixi Rendering a Filter Texture over a sprite container throws off alignment
I'm fairly new to PIXI and Shaders and although I have reached the effect I want but I'm struggling with a PIXI Renderer scale issue.
The image shows a CSS grid, over the top of a PIXI canvas. In the canvas I'm rendering sprites that do... | https://stackoverflow.com/questions/79896201/react-pixi-rendering-a-filter-texture-over-a-sprite-container-throws-off-alignme | reactjs, fragment-shader, pixi.js | 1,772,024,001 |
se_79898282 | stackoverflow | FRONTEND_DEVELOPMENT | Thermal Printing using react JS, dotnet | Thermal Printing using react JS, dotnet
I am currently building a IMS and POS system, for the POS need to integrate thermal printing for billing, I need to know the current industrial standard of how it is implemented
Current Architecture
frontend makes API call to backend to fetch the connected devices -> this fetche... | https://stackoverflow.com/questions/79898282/thermal-printing-using-react-js-dotnet | c#, reactjs, .net, thermal-printer | 1,772,259,450 |
se_55289375 | stackoverflow | FRONTEND_DEVELOPMENT | Redirecting Server Requests to /index.html for React/Angular SPA | Redirecting Server Requests to /index.html for React/Angular SPA
Let's say I have a React or Angular app hosted at www.mywebsite.com/index.html with Apache serving the web app file. Inside the app, I have many routes
defined such as /aboutus or /faq. But as we all know, there don't actually exist /aboutus.html or /f... | https://stackoverflow.com/questions/55289375/redirecting-server-requests-to-index-html-for-react-angular-spa | angular, reactjs, react-router, angular-routing, deep-linking | 1,553,202,973 |
se_75692454 | stackoverflow | FRONTEND_DEVELOPMENT | Zustand is not updating the state | Zustand is not updating the state
I am trying to simply update the token with the help of a setter function in Zustand, but it is not working.
Here is my code:
import { create } from 'zustand'
interface AuthTokenProps {
authToken: string
setAuthToken: (data: string) => void
}
const useAuthToken = create<AuthToke... | https://stackoverflow.com/questions/75692454/zustand-is-not-updating-the-state | reactjs, next.js, zustand | 1,678,424,984 |
se_79349512 | stackoverflow | FRONTEND_DEVELOPMENT | When creating a library, how do i know if a project installing some package? | When creating a library, how do i know if a project installing some package?
I just create two library (Theme and Snackbar), those library can be install as a standalone package, but now I want to optionally support some feature in case a project installing two of my library.
for example
App.js
import { SnackbarProvid... | https://stackoverflow.com/questions/79349512/when-creating-a-library-how-do-i-know-if-a-project-installing-some-package | javascript, reactjs, react-native | 1,736,667,446 |
se_64623970 | stackoverflow | FRONTEND_DEVELOPMENT | Inner <li> onClick doesn't fire | Inner <li> onClick doesn't fire
I have a problem in my React project.
I have a menu which has a sub-menu which has a sub-menu
This is the markup and code:
<ul
id="main-menu-navigation"
data-menu="menu-navigation"
className="navigation navigation-main"
>
<li id=... | https://stackoverflow.com/questions/64623970/inner-li-onclick-doesnt-fire | javascript, jquery, reactjs | 1,604,161,798 |
se_79897542 | stackoverflow | FRONTEND_DEVELOPMENT | How can we access the img from one folder to another in React.js? | How can we access the img from one folder to another in React.js?
I am doing a React API project where in my assets folder I have my logo, and in another folder, a component called Navbar.js is there. I want the logo in that file. How can we do that ? Is there anything to import, or do I have to do something else i a... | https://stackoverflow.com/questions/79897542/how-can-we-access-the-img-from-one-folder-to-another-in-react-js | reactjs | 1,772,168,461 |
se_66615874 | stackoverflow | FRONTEND_DEVELOPMENT | How to force default locale in the URL when clicking a link in Next.js | How to force default locale in the URL when clicking a link in Next.js
For the SEO purposes I need to set up English as default language -> mynextapp.com/ when user enters the website, he/she can choose between ENGLISH or FRENCH, if English is selected the url will change to mynextapp.com/en, if the French will be cho... | https://stackoverflow.com/questions/66615874/how-to-force-default-locale-in-the-url-when-clicking-a-link-in-next-js | reactjs, internationalization, next.js, next-router | 1,615,652,797 |
se_58312768 | stackoverflow | FRONTEND_DEVELOPMENT | How to polyfill IE11 in NextJS project? | How to polyfill IE11 in NextJS project?
I'm trying to polyfill the project for IE11 but no matter what I do browser logs these errors:
Dev mode:
SCRIPT1002: Syntax error in _app.js (49004,30)
49004 const Component = props => (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_injectIntl__WEBPACK_IMPORTED_MODU... | https://stackoverflow.com/questions/58312768/how-to-polyfill-ie11-in-nextjs-project | reactjs, internet-explorer-11, babeljs, next.js, babel-polyfill | 1,570,657,787 |
se_72763446 | stackoverflow | FRONTEND_DEVELOPMENT | Serviceworker and cannot use import statement outside a module | Serviceworker and cannot use import statement outside a module
I have an react-example of a service worker, with import statements.
Like:
import { clientsClaim } from 'workbox-core';
If I use this code (react) in my service-worker, I get the message:
Uncaught SyntaxError: Cannot use import statement outside a module ... | https://stackoverflow.com/questions/72763446/serviceworker-and-cannot-use-import-statement-outside-a-module | reactjs, service-worker | 1,656,261,949 |
se_67448021 | stackoverflow | FRONTEND_DEVELOPMENT | useLayoutEffect does not update UI before react dom paints UI | useLayoutEffect does not update UI before react dom paints UI
I was practicing useRef usage with useEffect hook. Simply, it shows the old value since useEffect hook runs after React paints the UI.
function UseRefExample1() {
const ref = useRef('')
const [val, setVal] = useState('')
useEffect(() => {
ref.current =... | https://stackoverflow.com/questions/67448021/uselayouteffect-does-not-update-ui-before-react-dom-paints-ui | reactjs, react-hooks, use-effect, use-ref | 1,620,480,056 |
se_74336361 | stackoverflow | FRONTEND_DEVELOPMENT | Next.js: Error: Failed to collect page data for / | Next.js: Error: Failed to collect page data for /
I have added peerjs to a Next.js app, and the following two lines, like this. If I remove those two lines, app works.
// index.tsx
import { Peer } from 'peerjs'
export default function Home() {
const peer = new Peer('pick-an-id-jwrn')
andyarn build raise this er... | https://stackoverflow.com/questions/74336361/next-js-error-failed-to-collect-page-data-for | reactjs, typescript, next.js, peerjs | 1,667,741,884 |
se_64241134 | stackoverflow | FRONTEND_DEVELOPMENT | How to validate multistep form in react | How to validate multistep form in react
I have a multi-step form, which I am making using react, to work on validation I am using react-hook-form.
I have already achieved 90% of things just one thing I am facing the issue is getting the second form data which is dynamic.
What I am doing is
In my first form I have two... | https://stackoverflow.com/questions/64241134/how-to-validate-multistep-form-in-react | javascript, reactjs, react-hooks, react-hook-form | 1,602,062,899 |
se_79823178 | stackoverflow | FRONTEND_DEVELOPMENT | Infinite loading with generateMetadata in Next.js 15.3.3 and React 19.2 | Infinite loading with generateMetadata in Next.js 15.3.3 and React 19.2
I’m trying to generate dynamic metadata using the built-in Next.js method generateMetadata.
On localhost, it works:
It fetches the title, reads the related article, and generates the metadata in the <head> tag.
When I deploy to my development envi... | https://stackoverflow.com/questions/79823178/infinite-loading-with-generatemetadata-in-next-js-15-3-3-and-react-19-2 | reactjs, next.js | 1,763,457,389 |
se_69797777 | stackoverflow | FRONTEND_DEVELOPMENT | Material UI 5 Stepper + react hook form 7 | Material UI 5 Stepper + react hook form 7
I want multi step form. I have MUI5 and react-hook-form 7.
I have 2 form one is signup and second is address.
I just want to update this example: https://codesandbox.io/s/unruffled-river-9fkxo?file=/src/MultiStepForm.js:2597-2608.
I tried something like this https://codesandbo... | https://stackoverflow.com/questions/69797777/material-ui-5-stepper-react-hook-form-7 | reactjs, react-hooks, material-ui, react-hook-form | 1,635,774,068 |
se_79854915 | stackoverflow | FRONTEND_DEVELOPMENT | Expo Router not working in Nx monorepo – stuck on splash / welcome screen | Expo Router not working in Nx monorepo – stuck on splash / welcome screen
What I’ve done so far
1. Installed Expo Router.
"expo-router": "~6.0.21"
2. Updated package.json
{
"main": "expo-router/entry"
}
3. Updated app.json
{
"plugins": [
"expo-router"
]
}
4. Tried navigating from the default screen
When I... | https://stackoverflow.com/questions/79854915/expo-router-not-working-in-nx-monorepo-stuck-on-splash-welcome-screen | reactjs, react-native, expo, nomachine-nx | 1,766,675,682 |
se_56406343 | stackoverflow | FRONTEND_DEVELOPMENT | How do you pass an image to a styled component? | How do you pass an image to a styled component?
I'm using styled-components in ReactJS and I'm trying to create a component that can take in the background-image as a prop. After some research, I've tried this:
import SpeechBubble1 from '../images/home_images/Speech 1.png';
...
const SpeechBubble = styled.div`
b... | https://stackoverflow.com/questions/56406343/how-do-you-pass-an-image-to-a-styled-component | reactjs, styled-components | 1,559,388,833 |
se_75059890 | stackoverflow | FRONTEND_DEVELOPMENT | useContext is not a function or its return value is not iterable | useContext is not a function or its return value is not iterable
I get the following error when using const [state, setState] = useContext(Context):
useContext is not a function or its return value is not iterable
Not sure why as I've done this multiple times before. This is my set up:
My State.jsx file:
import { crea... | https://stackoverflow.com/questions/75059890/usecontext-is-not-a-function-or-its-return-value-is-not-iterable | javascript, reactjs, react-context | 1,673,280,014 |
se_50793885 | stackoverflow | FRONTEND_DEVELOPMENT | ReferenceError: You are trying to `import` a file after the Jest environment has been torn down | ReferenceError: You are trying to `import` a file after the Jest environment has been torn down
I have a component that makes use of Animated component from react native. I started writing a test case to simulate onPress of a component, which calls a function that has Animated.timing in it, and setState.
running jest... | https://stackoverflow.com/questions/50793885/referenceerror-you-are-trying-to-import-a-file-after-the-jest-environment-has | javascript, reactjs, react-native, jestjs, enzyme | 1,528,707,534 |
se_79835698 | stackoverflow | FRONTEND_DEVELOPMENT | TypeScript error "Argument of type 'string' is not assignable to parameter of type 'never'" when filtering array in React | TypeScript error "Argument of type 'string' is not assignable to parameter of type 'never'" when filtering array in React
I'm building a data filtering component in React/TypeScript, and I'm getting a confusing TypeScript error when trying to filter an array based on user input. The error say... | https://stackoverflow.com/questions/79835698/typescript-error-argument-of-type-string-is-not-assignable-to-parameter-of-ty | reactjs, typescript | 1,764,668,865 |
se_60620712 | stackoverflow | FRONTEND_DEVELOPMENT | How can I create a PDF file without using a library? | How can I create a PDF file without using a library?
I am trying to create a PDF from a JS object without using a library, my code is as follows:
var downloadLink = document.createElement('a');
var blob = new Blob(["Random text"], {type: 'application/pdf'})
console.log(blob)
var url = URL.createObjectURL(blob);
downl... | https://stackoverflow.com/questions/60620712/how-can-i-create-a-pdf-file-without-using-a-library | javascript, reactjs, pdf, pdf-generation | 1,583,853,793 |
se_78844817 | stackoverflow | FRONTEND_DEVELOPMENT | Can I directly download an image using a Telegram Mini App? | Can I directly download an image using a Telegram Mini App?
Hello Stack Overflow community,
I am developing a Telegram Mini App using React JS and encountering an issue with downloading images directly from the frontend. I have an image stored locally in my project's assets and I want to provide a feature that allows ... | https://stackoverflow.com/questions/78844817/can-i-directly-download-an-image-using-a-telegram-mini-app | reactjs, image, telegram, imagedownload | 1,723,048,419 |
se_79010095 | stackoverflow | FRONTEND_DEVELOPMENT | React - Ionic Modals SwiperJS strange behavior, automatically changing active slide(with gif) | React - Ionic Modals SwiperJS strange behavior, automatically changing active slide(with gif)
Inside one of my ionic page (categories). I have list of multiple swipers. Every swiper slide have item that have some button. On click on that button, modal will show. Modal component is outside of Swiper component (only one... | https://stackoverflow.com/questions/79010095/react-ionic-modals-swiperjs-strange-behavior-automatically-changing-active-sl | reactjs, ionic-framework, swiper.js | 1,726,938,819 |
se_77017557 | stackoverflow | FRONTEND_DEVELOPMENT | Tailwind CSS installed in react (vite) but not working | Tailwind CSS installed in react (vite) but not working
This is the image after installing Vite and Tailwind css
tailwind.congif.js code
in Index css I tried as mentioned in Tailwind as below
@tailwind base;
@tailwind components;
@tailwind utilities;
But not working.
I saw in YouTube videos once they installed tailwi... | https://stackoverflow.com/questions/77017557/tailwind-css-installed-in-react-vite-but-not-working | reactjs, tailwind-css | 1,693,497,726 |
se_63177398 | stackoverflow | FRONTEND_DEVELOPMENT | How can I render emoji in my React app (using Webpack)? | How can I render emoji in my React app (using Webpack)?
I've tried using emojis in my React components in a few different ways (i.e. ✨, {'\u2728'}, and a few component libraries). Every way works with my dev build of the code and fails with my prod build of the same code.
The prod build outputs the Unicode value of th... | https://stackoverflow.com/questions/63177398/how-can-i-render-emoji-in-my-react-app-using-webpack | reactjs, webpack, emoji | 1,596,126,326 |
se_70742449 | stackoverflow | FRONTEND_DEVELOPMENT | Why does my react tests fail in CI-pipeline due to "not wrapped in act()", while working fine locally? | Why does my react tests fail in CI-pipeline due to "not wrapped in act()", while working fine locally?
I have a test-suite containing 37 tests that are testing one of my views. Locally, all tests pass without any issues, but when I push my code, the test-suite fails in our pipeline (we are using GitLab).
The... | https://stackoverflow.com/questions/70742449/why-does-my-react-tests-fail-in-ci-pipeline-due-to-not-wrapped-in-act-while | reactjs, testing, jestjs, gitlab-ci, react-testing-library | 1,642,427,381 |
se_79658244 | stackoverflow | FRONTEND_DEVELOPMENT | Apollo Client Query Doesn't Update After Updating Reactive Variable | Apollo Client Query Doesn't Update After Updating Reactive Variable
Several of my Apollo Client query's variables are mutable depending on different user actions (search input, category filtering, pagination, etc.). I figured the best way to handle this was to use Apollo's Reactive Variables, so when a variable is... | https://stackoverflow.com/questions/79658244/apollo-client-query-doesnt-update-after-updating-reactive-variable | reactjs, apollo-client | 1,749,428,535 |
se_79894587 | stackoverflow | FRONTEND_DEVELOPMENT | Rerender same component with new route params | Rerender same component with new route params
I have a category page that is supposed to display category info depending on the category route.
My route is:
<Route path="/category/*" element={<CategoryPage />} />
I can have multiple layers of sub categories so the actual URL could look something like category/mens or... | https://stackoverflow.com/questions/79894587/rerender-same-component-with-new-route-params | reactjs, react-hooks | 1,771,848,946 |
se_57071522 | stackoverflow | FRONTEND_DEVELOPMENT | How to check for esim eligibility in react-native app? | How to check for esim eligibility in react-native app?
I need to make a react-native app that checks if the device is suitable for esim or not.
I obtain this information https://source.android.com/devices/tech/connect/esim-overview to setup esim but cannot figure out how to implement it in real code. I am trying to u... | https://stackoverflow.com/questions/57071522/how-to-check-for-esim-eligibility-in-react-native-app | javascript, android, reactjs, react-native, e-sim | 1,563,351,596 |
se_78404789 | stackoverflow | FRONTEND_DEVELOPMENT | VS2022 ASP.NET + React: Unable to launch the previously selected debugger. Please choose another | VS2022 ASP.NET + React: Unable to launch the previously selected debugger. Please choose another
I have created an ASP.NET + React.js project in Visual Studio 2022. I inserted an existing React.js app into client side. The client uses Next.js (if it is relevant). When I try to run it, I get the following issues:
If ... | https://stackoverflow.com/questions/78404789/vs2022-asp-net-react-unable-to-launch-the-previously-selected-debugger-pleas | reactjs, .net, visual-studio, next.js | 1,714,418,876 |
se_56136978 | stackoverflow | FRONTEND_DEVELOPMENT | Render a filtered list of restaurants based on input value in React | Render a filtered list of restaurants based on input value in React
I want to render a list of restaurants filtered by the text entered in an input field. The list should update as the user types, showing only restaurants whose names match the input and are published.
class Banner extends Component {
this.state = {... | https://stackoverflow.com/questions/56136978/render-a-filtered-list-of-restaurants-based-on-input-value-in-react | reactjs | 1,557,860,652 |
se_49140463 | stackoverflow | FRONTEND_DEVELOPMENT | Missing .env files when I use React native Config for android | Missing .env files when I use React native Config for android
I have configured my project like this document says. I am running the app I am getting this
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Configure project :app
Reading env from: ... | https://stackoverflow.com/questions/49140463/missing-env-files-when-i-use-react-native-config-for-android | reactjs, config, native | 1,520,372,559 |
se_79893101 | stackoverflow | FRONTEND_DEVELOPMENT | Is it okay to use setState inside a setState callback? | Is it okay to use setState inside a setState callback?
Illustrative example:
export const App = () => {
const [things, setThings] = useStoredState(window.localStorage, 'things', [
{ id: 0, name: 'New Thing' },
]);
const [selectedThingId, setSelectedThingId] = useStoredState(window.sessionStorage, 'selectedT... | https://stackoverflow.com/questions/79893101/is-it-okay-to-use-setstate-inside-a-setstate-callback | javascript, reactjs, react-state | 1,771,606,312 |
se_78595248 | stackoverflow | FRONTEND_DEVELOPMENT | How to check if a caught exception was thrown because of triggering an AbortController? | How to check if a caught exception was thrown because of triggering an AbortController?
I created a Simple Blog site using React With TypeScript and made a custom hook (useFetch). This hook fetches data Inside the useEffect hook.
Here is the code:
const useFetch = (url : string) => {
interface Blogs{
titl... | https://stackoverflow.com/questions/78595248/how-to-check-if-a-caught-exception-was-thrown-because-of-triggering-an-abortcont | javascript, reactjs, abort | 1,717,839,201 |
se_76572694 | stackoverflow | FRONTEND_DEVELOPMENT | Converting react.js to html/css | Converting react.js to html/css
don't misunderstand. I need this for a small experiment, and since I'm not a front-end developer, I don't know react.js, I need help
I have main.jsx file
I would like to change it to pure html\css\js, i.e. without react. I have a problem. If in this code, the data from the form is trans... | https://stackoverflow.com/questions/76572694/converting-react-js-to-html-css | javascript, html, css, reactjs | 1,687,951,331 |
se_70568787 | stackoverflow | FRONTEND_DEVELOPMENT | Convert REACT js Component into an HTML file | Convert REACT js Component into an HTML file
I have a static React component, which is pieces of information from a database.
I would like to create a function, so when the user clicks on a button, it will download the React component as an HTML file.
In other words, I would like to allow the user to download the HTML... | https://stackoverflow.com/questions/70568787/convert-react-js-component-into-an-html-file | javascript, html, reactjs | 1,641,227,722 |
se_77428046 | stackoverflow | FRONTEND_DEVELOPMENT | Why is my React Native Expo App stuck bundling | Why is my React Native Expo App stuck bundling
Fairly new with React-Native and JS. I've been creating a simple login screen, used to work and bundle in my phone with expo go app but after modifying a bit the App.js file when I type "npm start" it simple stays bundling forever unless I close VS code.
There are no addi... | https://stackoverflow.com/questions/77428046/why-is-my-react-native-expo-app-stuck-bundling | javascript, reactjs, react-native, expo | 1,699,226,942 |
se_70956615 | stackoverflow | FRONTEND_DEVELOPMENT | How to add and validate custom fields into checkout block in WooCommerce Block plugin? | How to add and validate custom fields into checkout block in WooCommerce Block plugin?
I am trying to add custom field within WooCommerce Checkout Block, so I added a forced Inner Block by following this document.And it all works pretty good, But whenever I click place order the custom field that I added is not get va... | https://stackoverflow.com/questions/70956615/how-to-add-and-validate-custom-fields-into-checkout-block-in-woocommerce-block-p | reactjs, wordpress, woocommerce, gutenberg-blocks | 1,643,809,054 |
se_56481164 | stackoverflow | FRONTEND_DEVELOPMENT | How do I make my React app to open in Chrome browser by default? | How do I make my React app to open in Chrome browser by default?
I am using create-react-app tool to develop React apps. The problem is that when I run the application using "npm start" command, it will open in Firefox browser and I want it to open in Chrome browser by default.
I found many answers providing same sol... | https://stackoverflow.com/questions/56481164/how-do-i-make-my-react-app-to-open-in-chrome-browser-by-default | reactjs, create-react-app | 1,559,836,455 |
se_77909436 | stackoverflow | FRONTEND_DEVELOPMENT | How do I implement an "open in app" button to a website, for an app that uses iOS universal links? | How do I implement an "open in app" button to a website, for an app that uses iOS universal links?
My React site uses Apple App Site Association to open links to my site in my iOS app if installed. The problem occurs when I create a popup that asks the user to open the link in the app or browser. Reddit has ... | https://stackoverflow.com/questions/77909436/how-do-i-implement-an-open-in-app-button-to-a-website-for-an-app-that-uses-io | javascript, ios, reactjs, iphone, ios-universal-links | 1,706,649,183 |
se_68617996 | stackoverflow | FRONTEND_DEVELOPMENT | Downgrading storybook | Downgrading storybook
I am having an issue with Storybook 6.3 since it uses Webpack 5 and I am installing it on a clean create-react-app which uses Webpack 4.41.8.
I tried to update react webpack and all and still no luck. The problem started after I tried to add sass support for my storybook project, and went into de... | https://stackoverflow.com/questions/68617996/downgrading-storybook | reactjs, webpack, storybook | 1,627,889,999 |
se_64224629 | stackoverflow | FRONTEND_DEVELOPMENT | ImportError: 'useNavigate' is not exported from 'react-router-dom' | ImportError: 'useNavigate' is not exported from 'react-router-dom'
When trying to import useNavigate from react-router-dom, I get the following error:
Attempted import error: 'useNavigate' is not exported from 'react-router-dom'.
My Import statement:
import { useNavigate } from 'react-router-dom'; | https://stackoverflow.com/questions/64224629/importerror-usenavigate-is-not-exported-from-react-router-dom | javascript, reactjs, react-router | 1,601,982,740 |
se_63519495 | stackoverflow | FRONTEND_DEVELOPMENT | React, how to toggle background color of just one button? | React, how to toggle background color of just one button?
I try to change background color of each button after click. Problem is, that it works for all of the buttons together, instead of just for one which was clicked. I think, that I should use e, or index to fix it, but I really don't know how to do this.
App.js
c... | https://stackoverflow.com/questions/63519495/react-how-to-toggle-background-color-of-just-one-button | reactjs, button, styles, toggle | 1,597,999,444 |
se_71226136 | stackoverflow | FRONTEND_DEVELOPMENT | How can I access response data of api call in react js while request is completing? | How can I access response data of api call in react js while request is completing?
Actually I am getting pdf bytes from api call and I want to show pdf data as content is being downloaded but I am not able to access response data before the request is completed and for large pdf files I have to wait for few seconds f... | https://stackoverflow.com/questions/71226136/how-can-i-access-response-data-of-api-call-in-react-js-while-request-is-completi | javascript, reactjs | 1,645,552,611 |
se_71765967 | stackoverflow | FRONTEND_DEVELOPMENT | Data shared between different users and requests in Next.js? | Data shared between different users and requests in Next.js?
I do not know how to ask this question more formally. I was looking for state management in React while using Next.js, for example redux or react-query. I have seen a lot of comments that say something along the lines:
Be careful to NOT do that because the ... | https://stackoverflow.com/questions/71765967/data-shared-between-different-users-and-requests-in-next-js | javascript, reactjs, redux, next.js, react-state-management | 1,649,244,648 |
se_79892494 | stackoverflow | FRONTEND_DEVELOPMENT | How can I debounce a search input in React so it doesn’t fire an API request on every keystroke? | How can I debounce a search input in React so it doesn’t fire an API request on every keystroke?
I’m building a search bar in a React functional component using hooks. Right now, every time the user types a character, it immediately calls my API. I’d like to wait until the user stops typing for about 500ms before maki... | https://stackoverflow.com/questions/79892494/how-can-i-debounce-a-search-input-in-react-so-it-doesn-t-fire-an-api-request-on | reactjs | 1,771,533,307 |
se_73786453 | stackoverflow | FRONTEND_DEVELOPMENT | How to send large number of requests from axios? | How to send large number of requests from axios?
I want to send about 2000 api calls to retrieve data from some api. How do i archive this without having any bottlenecks using axios? | https://stackoverflow.com/questions/73786453/how-to-send-large-number-of-requests-from-axios | node.js, reactjs, axios, bottleneck | 1,663,675,611 |
se_73422362 | stackoverflow | FRONTEND_DEVELOPMENT | How to handle the browser's "back" button in React? | How to handle the browser's "back" button in React?
I have "react-dom-router v6.3.0" (strictly!) now and I couldn't understand how to handle browser's "back" button. For example I need to catch the event, so I could open warning modal that user leaves the page after clicking back. At least give me a dire... | https://stackoverflow.com/questions/73422362/how-to-handle-the-browsers-back-button-in-react | reactjs, typescript, react-router, react-router-dom | 1,660,944,062 |
se_71594682 | stackoverflow | FRONTEND_DEVELOPMENT | Ant design DatePicker in form | Ant design DatePicker in form
I'm using DatePicker component from antd inside a form and want to change the default onChange and value of props in DatePicker but it is not working.
<Form.Item
label='Test Label'
name='startDate'
getValueFromEvent={(onChange) => moment(onChange).format('YYYY-MM-DD')}
getValuePro... | https://stackoverflow.com/questions/71594682/ant-design-datepicker-in-form | reactjs, datepicker, momentjs, antd | 1,648,073,522 |
se_63465561 | stackoverflow | FRONTEND_DEVELOPMENT | What is localhost 3000? | What is localhost 3000?
I am new to web development. When I read how to setup react project I see localhost:3000. I searched for it but any of the answers didn't answer what localhost:3000 mean. | https://stackoverflow.com/questions/63465561/what-is-localhost-3000 | reactjs, frameworks | 1,597,742,337 |
se_79891051 | stackoverflow | FRONTEND_DEVELOPMENT | Next.js Middleware updates cookie but React Server Component still reads old value until full reload | Next.js Middleware updates cookie but React Server Component still reads old value until full reload
I'm using Next.js App Router and setting a cookie inside middleware.ts:
import { NextResponse } from "next/server";
export function middleware(req: Request) {
const res = NextResponse.next();
res.cookies.set("acti... | https://stackoverflow.com/questions/79891051/next-js-middleware-updates-cookie-but-react-server-component-still-reads-old-val | reactjs, next.js, cookies, server-side-rendering, middleware | 1,771,347,425 |
se_79891205 | stackoverflow | FRONTEND_DEVELOPMENT | Images not loading when hosting Next.js application on GitHub Pages | Images not loading when hosting Next.js application on GitHub Pages
I've had a number of issues getting my Next.js to build and load using GitHub Pages. The final problem I am having now is that the images are not loading and it appears to be a problem with the image URLs not correctly being configured. For example in... | https://stackoverflow.com/questions/79891205/images-not-loading-when-hosting-next-js-application-on-github-pages | javascript, reactjs, github-pages, next.js13 | 1,771,367,034 |
se_46024021 | stackoverflow | FRONTEND_DEVELOPMENT | Open nested menu in main menu with Material UI | Open nested menu in main menu with Material UI
In Material UI I can program nested menus and dropdown menus. But I haven`t found an example to open the nested menus in the main menu.
With nested menus and dropdown menus the nested menus open as a new window beside or above the main menu:
But I want the nested menus o... | https://stackoverflow.com/questions/46024021/open-nested-menu-in-main-menu-with-material-ui | javascript, reactjs, material-ui | 1,504,446,166 |
se_79891795 | stackoverflow | FRONTEND_DEVELOPMENT | React exception while prop drilling | React exception while prop drilling
I'm using React to create a control to view files on a remote system and would like the UI to show exactly one of them as selected so I put this code together which mostly works but allows an item to be selected in each subtree instead of a single global item.
I thought I may need t... | https://stackoverflow.com/questions/79891795/react-exception-while-prop-drilling | javascript, reactjs, react-props | 1,771,442,882 |
se_79891550 | stackoverflow | FRONTEND_DEVELOPMENT | ul ref not getting updated when a list element is removed and as such the focus goes back to the body | ul ref not getting updated when a list element is removed and as such the focus goes back to the body
I have an unordered list wherein each list item is a card which contains a button. The button opens a popover with 2 options - edit/delete.
When I tab through to the button and click on delete, a new modal opens up. W... | https://stackoverflow.com/questions/79891550/ul-ref-not-getting-updated-when-a-list-element-is-removed-and-as-such-the-focus | reactjs, accessibility, focus, react-ref | 1,771,419,774 |
se_51642532 | stackoverflow | FRONTEND_DEVELOPMENT | How to make a Material UI react Button act as a react-router-dom Link? | How to make a Material UI react Button act as a react-router-dom Link?
How can I make a Material UI react Button component act as a Link component from react-router-dom without losing it's original style? Like changing the route on click.
import Button from '@material-ui/core/Button';
<Button variant="contained" col... | https://stackoverflow.com/questions/51642532/how-to-make-a-material-ui-react-button-act-as-a-react-router-dom-link | javascript, reactjs, react-router, material-ui, react-router-dom | 1,533,159,077 |
se_79890677 | stackoverflow | FRONTEND_DEVELOPMENT | How to manipulate the browser navigation history in a next.js app? | How to manipulate the browser navigation history in a next.js app?
I want to know how to manipulate the navigation history when there is a page that updates query parameters during the initial render.
Home > Another Page (is updated on initial render as example.com?page=1&&limit=50).
When I click the back button, I am... | https://stackoverflow.com/questions/79890677/how-to-manipulate-the-browser-navigation-history-in-a-next-js-app | javascript, reactjs, next.js | 1,771,314,410 |
se_68114023 | stackoverflow | FRONTEND_DEVELOPMENT | Best practice for React useState with objects? | Best practice for React useState with objects?
Unlike the state from classes, you are not limited to a single object. With useState, you can create separate values for each case like this:
const [name, setName] = useState('John');
const [email, setEmail] = useState('john@example.com');
const [age, setAge] = useState(2... | https://stackoverflow.com/questions/68114023/best-practice-for-react-usestate-with-objects | reactjs, react-hooks | 1,624,530,527 |
se_65820851 | stackoverflow | FRONTEND_DEVELOPMENT | Can't click to move cursor or highlight text inside of Material UI TextField | Can't click to move cursor or highlight text inside of Material UI TextField
I'm using a Material UI TextField component in my React project. I am unable to highlight text or click to move the cursor inside of it.
<TextField
variant={"standard"}
className={styles._input}
multiline={true}
fullWidth={true}
... | https://stackoverflow.com/questions/65820851/cant-click-to-move-cursor-or-highlight-text-inside-of-material-ui-textfield | reactjs, material-ui, textfield | 1,611,200,370 |
se_58262503 | stackoverflow | FRONTEND_DEVELOPMENT | Why am I getting a 500 error on form submit? | Why am I getting a 500 error on form submit?
I'd like to know why I'm getting a 500 error when trying to upload photos to the DB. I have a feeling my controller's messed up as well as my axios call in my React code. Pastebin's below. If you need more information please let me know.
https://pastebin.com/Pv1eigFK
... | https://stackoverflow.com/questions/58262503/why-am-i-getting-a-500-error-on-form-submit | javascript, php, reactjs, laravel, debugging | 1,570,411,078 |
se_70230189 | stackoverflow | FRONTEND_DEVELOPMENT | How to set material ui datagrid column sort icon as always be visible? | How to set material ui datagrid column sort icon as always be visible?
Here is codesandbox. I am trying to have the ability to sort by the first name and last name The default Datagrid only shows the sort icon when hovering. Is there a way I can set it to be always visible? Thanks for the help! | https://stackoverflow.com/questions/70230189/how-to-set-material-ui-datagrid-column-sort-icon-as-always-be-visible | reactjs, material-ui, mui-x-data-grid | 1,638,658,839 |
se_79881760 | stackoverflow | FRONTEND_DEVELOPMENT | How to paginate HTML content for printing while keeping header and footer on every page | How to paginate HTML content for printing while keeping header and footer on every page
I am trying to print a patient report with multiple sections (Lab, Radiology, Clinical Notes) in a browser using window.print().
I want the following behavior:
Each printed page must have a header and footer.
Each section (Lab, Ra... | https://stackoverflow.com/questions/79881760/how-to-paginate-html-content-for-printing-while-keeping-header-and-footer-on-eve | html, css, reactjs | 1,770,109,563 |
se_77593615 | stackoverflow | FRONTEND_DEVELOPMENT | Error: Type 'FormDataEntryValue' is not assignable to type 'string'. Type 'File' is not assignable to type 'string' | Error: Type 'FormDataEntryValue' is not assignable to type 'string'. Type 'File' is not assignable to type 'string'
I have this data that I get from the formData and I want it to pass for the function for sending an email.
Error:
Type 'FormDataEntryValue' is not assignable to type 'stri... | https://stackoverflow.com/questions/77593615/error-type-formdataentryvalue-is-not-assignable-to-type-string-type-file | javascript, reactjs, typescript, next.js | 1,701,594,109 |
se_78593604 | stackoverflow | FRONTEND_DEVELOPMENT | Post not carrying out when called in a onclick event handler | Post not carrying out when called in a onclick event handler
I made a program just for fun updating user emails. I wrote a function which I have tried to place inside an event handler outside tried everywhere, that function has a post request and it returns true if it got a response and false if it catches an error.
I... | https://stackoverflow.com/questions/78593604/post-not-carrying-out-when-called-in-a-onclick-event-handler | javascript, reactjs, post, axios | 1,717,786,400 |
se_51297500 | stackoverflow | FRONTEND_DEVELOPMENT | Disable auto {} insertion for React props in PyCharm | Disable auto {} insertion for React props in PyCharm
When I type props into my React component in PyCharm, it automatically inserts a pair of curly braces. Like so (cursor position is |):
<MyComp className=|
Becomes:
<MyComp className={|}
I've searched through the settings but didn't find a related setting to di... | https://stackoverflow.com/questions/51297500/disable-auto-insertion-for-react-props-in-pycharm | javascript, reactjs, pycharm, webstorm, jsx | 1,531,371,091 |
se_79444381 | stackoverflow | FRONTEND_DEVELOPMENT | Next.js Middleware Not Detecting JWT Cookie Set by Spring Boot Backend | Next.js Middleware Not Detecting JWT Cookie Set by Spring Boot Backend
I am working on a software that includes a Nextjs Front End and Spring boot backend.
Please note: axios is used for the login request.
In the frontend, the application has about 4 urls:
which is the home page (/)
content page (/contents - does not... | https://stackoverflow.com/questions/79444381/next-js-middleware-not-detecting-jwt-cookie-set-by-spring-boot-backend | reactjs, node.js, typescript, spring, spring-boot | 1,739,765,549 |
se_70498521 | stackoverflow | FRONTEND_DEVELOPMENT | How to use Turborepo for an existing react app created with Create React App in order to make it a monorepo? | How to use Turborepo for an existing react app created with Create React App in order to make it a monorepo?
I have a fun project made with create react app. I want to convert the same application to a browser extension. This idea forces me to make the project a mono repo. Because in both applications, I will use the ... | https://stackoverflow.com/questions/70498521/how-to-use-turborepo-for-an-existing-react-app-created-with-create-react-app-in | reactjs, create-react-app, monorepo, npm-workspaces, turborepo | 1,640,625,604 |
se_54854319 | stackoverflow | FRONTEND_DEVELOPMENT | React Carousel with Multiple Items | React Carousel with Multiple Items
I'm having problems with my slider with ternary conditions, how may I solve it?
It considers that i'm closing the item before the last clause is done. This is a trying of build a multi-item carousel.
<Carousel className="col-md-7 col-11" indicators="true" controls="false">
{... | https://stackoverflow.com/questions/54854319/react-carousel-with-multiple-items | reactjs, carousel, ternary-operator, react-bootstrap | 1,551,027,780 |
se_56334381 | stackoverflow | FRONTEND_DEVELOPMENT | Why my font-awesome icons are being displayed big at first and then updated to the right size? | Why my font-awesome icons are being displayed big at first and then updated to the right size?
Every time I refresh the page the font-awesome icons are being displayed big. Seems like the css in being loaded before applying the proper size because right after the refresh it shows big, and then goes to the right size.
... | https://stackoverflow.com/questions/56334381/why-my-font-awesome-icons-are-being-displayed-big-at-first-and-then-updated-to-t | reactjs, font-awesome, next.js | 1,559,011,534 |
se_71451778 | stackoverflow | FRONTEND_DEVELOPMENT | NS_BINDING_ABORTED error in react useEffect() when using window.location.replace() | NS_BINDING_ABORTED error in react useEffect() when using window.location.replace()
Ok I get this NS_BINDING_ABORTED error in Firefox. So in my react component I want to redirect to another page when the user opens this page.
Here's the code:
import { useEffect } from 'react'
const Redirect = function () {
useEffect... | https://stackoverflow.com/questions/71451778/ns-binding-aborted-error-in-react-useeffect-when-using-window-location-replace | reactjs, typescript, firefox, next.js, window.location | 1,647,105,595 |
se_67286885 | stackoverflow | FRONTEND_DEVELOPMENT | Capacitor mobile app from React, and React Router Dom cannot render components | Capacitor mobile app from React, and React Router Dom cannot render components
I am building an android application with Typescript, CapacitorJS, React, React-Router-Dom, and BlueprintJS.
When I execute React application in the web browser environment, Every component which I have written is normally rendered.
After B... | https://stackoverflow.com/questions/67286885/capacitor-mobile-app-from-react-and-react-router-dom-cannot-render-components | android, reactjs, typescript, mobile, capacitor | 1,619,540,263 |
se_72041763 | stackoverflow | FRONTEND_DEVELOPMENT | Typescript inferred type cannot be named without reference | Typescript inferred type cannot be named without reference
My project's setup is tsdx (based on Rollup and Typescript).
Working in my IDE (vscode) everything looks fine, and even running yarn tsc works without errors.
When I'm running yarn build (which is tsdx build) I get the following error:
(typescript) Error: /hom... | https://stackoverflow.com/questions/72041763/typescript-inferred-type-cannot-be-named-without-reference | reactjs, typescript, rollup, tsdx | 1,651,140,228 |
se_71001226 | stackoverflow | FRONTEND_DEVELOPMENT | text and icon in a antd button are not aligned vertically | text and icon in a antd button are not aligned vertically
my issue is that my text and icon in a antd button are not aligned vertically in my react app.
Here is the code:
<Button type="primary" size="large" block icon={<PlusCircleOutlined />} onClick={()=>this.showModalSharePicture()}>
Text
... | https://stackoverflow.com/questions/71001226/text-and-icon-in-a-antd-button-are-not-aligned-vertically | javascript, css, reactjs, antd | 1,644,087,696 |
se_73194198 | stackoverflow | FRONTEND_DEVELOPMENT | javascript - export default/import not working | javascript - export default/import not working
This is my code:
Why is this not working?
The code is suppose to show the h1 in the html file, but for some reason it doesn't do that for me.
Element.js :
import React from "react"
function Element() {
return (
<div>
<h1>Hello World</h1>
</... | https://stackoverflow.com/questions/73194198/javascript-export-default-import-not-working | javascript, reactjs, react-dom | 1,659,359,465 |
se_77202017 | stackoverflow | FRONTEND_DEVELOPMENT | Supabase join with sdk on auth.users() table | Supabase join with sdk on auth.users() table
I have this table called appointments:
----------------------------------------------------------------------
| id | createdat | date | timeslot | user_id (FK on auth.users().id)
----------------------------------------------------------------------
And this code:
const ... | https://stackoverflow.com/questions/77202017/supabase-join-with-sdk-on-auth-users-table | reactjs, supabase | 1,695,991,177 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.