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_77531064
stackoverflow
FRONTEND_DEVELOPMENT
How can I communicate with 2 reactjs components - using Jotai
How can I communicate with 2 reactjs components - using Jotai I have 2 reactjs files: Reports.js (used to request report and display the result) AuthContext.js (has a socket connection to maintain communication with the backend server) user first goes to the report page generated by Reports.js and then there is a ca...
https://stackoverflow.com/questions/77531064/how-can-i-communicate-with-2-reactjs-components-using-jotai
javascript, reactjs, react-hooks, message-passing, jotai
1,700,665,550
se_63724878
stackoverflow
FRONTEND_DEVELOPMENT
typescript defining array with named objects
typescript defining array with named objects I am struggling to define a type for the array with named objects below is the sample code. now i have to define the type for the s in typescript let s =[12,3,4] s['data']={'x':0} console.log(s) // [12,3,4,data:{'x':0}] now how to define the type for the s can anyone ...
https://stackoverflow.com/questions/63724878/typescript-defining-array-with-named-objects
javascript, arrays, reactjs, typescript, types
1,599,140,360
se_79913950
stackoverflow
FRONTEND_DEVELOPMENT
Radix UI, Slottable only works when it is a direct child of the Slot component
Radix UI, Slottable only works when it is a direct child of the Slot component Like i have a button which contains left icon, right icon and badge in it. import { Slot, Slottable } from "@radix-ui/react-slot"; const Button = ({ asChild, children, leftIcon, rightIcon, badge, }: { asChild: Boolean; childr...
https://stackoverflow.com/questions/79913950/radix-ui-slottable-only-works-when-it-is-a-direct-child-of-the-slot-component
reactjs, radix-ui
1,774,406,706
se_46353978
stackoverflow
FRONTEND_DEVELOPMENT
ReactJS failing to import components
ReactJS failing to import components I'm very new to ReactJS but from what I gather the following code should work and it doesn't. I've created a new ReactJS project using the npm command create-react-app. In my project folder I've installed Google's material ui with npm install --save material-ui@next. I'm getting ...
https://stackoverflow.com/questions/46353978/reactjs-failing-to-import-components
reactjs, typescript, material-ui
1,506,032,270
se_79915066
stackoverflow
FRONTEND_DEVELOPMENT
Best approach to output the result of Rich Text Editing in React (NextJS)
Best approach to output the result of Rich Text Editing in React (NextJS) I stuck with the Idea about the Rich Text Editors could generate HTML that can be stored in DB and output it on render via Template Files. This is not the case while building RTE with React (NextJS). The Output HTML requires implementation via "...
https://stackoverflow.com/questions/79915066/best-approach-to-output-the-result-of-rich-text-editing-in-react-nextjs
reactjs, next.js13, lexical, payload-cms
1,774,531,434
se_79602010
stackoverflow
FRONTEND_DEVELOPMENT
React Native iOS Build Failed: fmt/src/format.cc compilation error after downloading Pod file
React Native iOS Build Failed: fmt/src/format.cc compilation error after downloading Pod file I am working on a React Native project, and after successfully downloading the Pod file, I am facing a build failure when running the app on iOS. Here’s what happens: I run the following command to start the app: rm -rf io...
https://stackoverflow.com/questions/79602010/react-native-ios-build-failed-fmt-src-format-cc-compilation-error-after-downloa
ios, reactjs, react-native, onesignal, react-native-onesignal
1,746,109,323
se_79914531
stackoverflow
FRONTEND_DEVELOPMENT
setInterval() method and useEffect hook not working as intended when trying to update 'timer' state variable
setInterval() method and useEffect hook not working as intended when trying to update 'timer' state variable I am working on this lab on freeCodeCamp. I am having issues with the setInterval() method as well as the useEffect hook. Once I click on the button, with every passing second, the timer state variable ...
https://stackoverflow.com/questions/79914531/setinterval-method-and-useeffect-hook-not-working-as-intended-when-trying-to-u
javascript, reactjs
1,774,463,006
se_79911955
stackoverflow
FRONTEND_DEVELOPMENT
When to Use useState vs Redux for State Management in React
When to Use useState vs Redux for State Management in React I’m currently working on a React project and I’m trying to determine when to use useState (i.e., local state) versus introducing Redux for managing state. While I understand that Redux can be powerful for managing global state, I’m unsure when it’s truly nece...
https://stackoverflow.com/questions/79911955/when-to-use-usestate-vs-redux-for-state-management-in-react
reactjs, redux, react-state
1,774,109,918
se_76127374
stackoverflow
FRONTEND_DEVELOPMENT
Type declaration for images imported from public folder
Type declaration for images imported from public folder I'd like to know how to declare type for images that are imported from public folder in Next.js. I created a file called data in utils folder. Inside data file I imported the images from a public folder and created an array of objects with keys like tile, desc, i...
https://stackoverflow.com/questions/76127374/type-declaration-for-images-imported-from-public-folder
javascript, reactjs, typescript, next.js
1,682,668,290
se_76887046
stackoverflow
FRONTEND_DEVELOPMENT
TypeError: Cannot read property 'setGenericPasswordForOptions' of null
TypeError: Cannot read property 'setGenericPasswordForOptions' of null import React, { createContext, useContext, useReducer } from "react"; import * as Keychain from "react-native-keychain"; // Initial state const initialState = { user: null, access: null, refresh: null, }; // Reducer function const a...
https://stackoverflow.com/questions/76887046/typeerror-cannot-read-property-setgenericpasswordforoptions-of-null
javascript, reactjs, react-native, expo, keychain
1,691,794,321
se_31175697
stackoverflow
FRONTEND_DEVELOPMENT
react native doesn't fill up window on ipad
react native doesn't fill up window on ipad Any react native project which I am running (including Facebook's examples) look weird on an iPad. It doesn't fill up the screen and everything looks "too big". (there are 2 black bars to the left and right of the content) Any help would be great. Thanks!
https://stackoverflow.com/questions/31175697/react-native-doesnt-fill-up-window-on-ipad
reactjs, react-native, ipad
1,435,811,934
se_60165374
stackoverflow
FRONTEND_DEVELOPMENT
GraphQL error: Expected type Int. Int cannot represent non-integer value
GraphQL error: Expected type Int. Int cannot represent non-integer value I'm currently learning GraphQL with Apollo for React and I have a question that I can't find the answer online: I've done a form to send data for my mongoDB and I have this query: const addContactMutation = gql` mutation($name: String!, $ad...
https://stackoverflow.com/questions/60165374/graphql-error-expected-type-int-int-cannot-represent-non-integer-value
reactjs, error-handling, graphql, react-apollo, apollo-client
1,581,412,640
se_79913531
stackoverflow
FRONTEND_DEVELOPMENT
i wana integrate wordpress api in my react native app
i wana integrate wordpress api in my react native app I have a mobile application built using React Native (Expo), and the app is already fully functional. I am currently using Firebase for authentication, cart management, and real-time features like order tracking and notifications. Now, I want to integrate a WordPre...
https://stackoverflow.com/questions/79913531/i-wana-integrate-wordpress-api-in-my-react-native-app
reactjs, wordpress, react-native
1,774,357,607
se_76849625
stackoverflow
FRONTEND_DEVELOPMENT
do I have to remove <React.StrictMode> before creating build file?
do I have to remove &lt;React.StrictMode&gt; before creating build file? I want to create build file for my react app, and I don't want components to render in it two time, so do I have to remove <React.StrictMode> before running following command: npm run build
https://stackoverflow.com/questions/76849625/do-i-have-to-remove-react-strictmode-before-creating-build-file
reactjs, build, strict-mode
1,691,393,623
se_68609189
stackoverflow
FRONTEND_DEVELOPMENT
Fetching multiple states with Zustand/React (shorthand syntax)
Fetching multiple states with Zustand/React (shorthand syntax) Are both ways of fetching states from the Zustand store identical in respect of re-renders on state changes? Method described in the documentation: const nuts = useStore(state => state.nuts) const honey = useStore(state => state.honey) Shorthand: const {...
https://stackoverflow.com/questions/68609189/fetching-multiple-states-with-zustand-react-shorthand-syntax
reactjs, zustand
1,627,810,877
se_46240647
stackoverflow
FRONTEND_DEVELOPMENT
How to (force to) re-render a functional component?
How to (force to) re-render a functional component? I have a function component, and I want to force it to re-render. How can I do so? Since there's no instance this, I cannot call this.forceUpdate().
https://stackoverflow.com/questions/46240647/how-to-force-to-re-render-a-functional-component
javascript, reactjs, react-functional-component
1,505,481,751
se_64233237
stackoverflow
FRONTEND_DEVELOPMENT
Integrating noUiSlider.js with SurveyJS in a ReactJS project
Integrating noUiSlider.js with SurveyJS in a ReactJS project I am using noUiSlider.js (a slider library) as a 'custom widget' that is available within surveyJS (another library). The documentation at surveyJS about the integration with noUiSlider.js is here: https://surveyjs.io/Examples/Library/?id=custom-widget-nouis...
https://stackoverflow.com/questions/64233237/integrating-nouislider-js-with-surveyjs-in-a-reactjs-project
javascript, reactjs, nouislider, surveyjs
1,602,015,426
se_79912114
stackoverflow
FRONTEND_DEVELOPMENT
Containers written as HOCs? (in the Container/Presentational pattern)
Containers written as HOCs? (in the Container/Presentational pattern) I keep seeing the Container/Presentational pattern when looking for ways to structure react components. I love the idea of separation of concerns and separating out the data from the view, but then every time I look at a container, at the end it cal...
https://stackoverflow.com/questions/79912114/containers-written-as-hocs-in-the-container-presentational-pattern
reactjs
1,774,139,127
se_36284453
stackoverflow
FRONTEND_DEVELOPMENT
React native text going off my screen, refusing to wrap. What to do?
React native text going off my screen, refusing to wrap. What to do? The following code can be found in this live example I've got the following react native element: 'use strict'; var React = require('react-native'); var { AppRegistry, StyleSheet, Text, View, } = React; var SampleApp = React.createClass({...
https://stackoverflow.com/questions/36284453/react-native-text-going-off-my-screen-refusing-to-wrap-what-to-do
css, reactjs, react-native, flexbox
1,459,254,916
se_56236838
stackoverflow
FRONTEND_DEVELOPMENT
how to include multiple code coverage&#39;s in the pipeline
how to include multiple code coverage&#39;s in the pipeline I have an entity framework .net core application as a backend and .net core react app for the front-end. I am trying to setup azure pipelines for this project. While I am setting the pipeline for .net core react app I am running the library tests (code cove...
https://stackoverflow.com/questions/56236838/how-to-include-multiple-code-coverages-in-the-pipeline
reactjs, .net-core, azure-devops, code-coverage
1,558,436,360
se_46966413
stackoverflow
FRONTEND_DEVELOPMENT
How to style material-ui textfield
How to style material-ui textfield I have been trying to work out how to style a material-ui TextField component. <TextField id="email" label="Email" className={classes.textField} value={this.state.form_email} onChange={this.handle_change('form_email')} margin="normal" /> My classes are crea...
https://stackoverflow.com/questions/46966413/how-to-style-material-ui-textfield
javascript, reactjs, material-ui
1,509,069,701
se_76944082
stackoverflow
FRONTEND_DEVELOPMENT
How to route to page/index.tsx when app/page.tsx has occupied the root route &quot;/&quot;
How to route to page/index.tsx when app/page.tsx has occupied the root route &quot;/&quot; I am new to Next.js, I tried an example. The project structure is: src --app -- page.tsx --components routing localhost:3000 goes to app/page.tsx. Now I add a page folder with an index.tsx src -- pages -- index.ts...
https://stackoverflow.com/questions/76944082/how-to-route-to-page-index-tsx-when-app-page-tsx-has-occupied-the-root-route
javascript, reactjs, node.js, next.js
1,692,610,728
se_65789785
stackoverflow
FRONTEND_DEVELOPMENT
how do I change language in react-i18next
how do I change language in react-i18next First I Initialize i18next inctance import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; const resources = { en: { translation: { 'Welcome to React': 'Welcome to React and react' } }, de: { translation: { 'Welcome to Reac...
https://stackoverflow.com/questions/65789785/how-do-i-change-language-in-react-i18next
reactjs, internationalization
1,611,052,536
se_72213434
stackoverflow
FRONTEND_DEVELOPMENT
Hide navbar and sidebar on &#39;login page&#39;, but show them on other pages
Hide navbar and sidebar on &#39;login page&#39;, but show them on other pages I'm new to reactjs and couldn't solve this problem. When I click the log in button, it goes to the home page, but the navbar and sidebar stay at the log in page. how can i fix this problem? Can't I handle this problem without putting the nav...
https://stackoverflow.com/questions/72213434/hide-navbar-and-sidebar-on-login-page-but-show-them-on-other-pages
javascript, reactjs
1,652,348,958
se_79911231
stackoverflow
FRONTEND_DEVELOPMENT
Data Fetching in React
Data Fetching in React Noob to React.js/Next.js and web dev in general. I have a Next.js client parent/container component that is getting too long, even the data fetching functions take about 300-400 LOC. Is it considered a good practice to separate the data fetching functions into a separate file/hook? I'm using Rea...
https://stackoverflow.com/questions/79911231/data-fetching-in-react
reactjs, next.js, react-query
1,774,003,325
se_75719159
stackoverflow
FRONTEND_DEVELOPMENT
how to display 4 cards with different images using props in react.js
how to display 4 cards with different images using props in react.js I can`t display my cards images in the screen it only display one image repeatedly. The code: import React from "react"; import cat1 from "../images/mr-whiskerson.png" import cat2 from "../images/fluffykins.png" import cat3 from "../images/felix.png...
https://stackoverflow.com/questions/75719159/how-to-display-4-cards-with-different-images-using-props-in-react-js
javascript, reactjs, image
1,678,693,606
se_79909853
stackoverflow
FRONTEND_DEVELOPMENT
teach me how to build an leetcode clone
teach me how to build an leetcode clone From zero to full-stack — my journey and what I'm building next help me choose Techstack for my project before that about myself: A few months ago I had never heard of TypeScript, APIs, Git, or deployment. I was a beginner with basic React knowledge and that was it. I just shipp...
https://stackoverflow.com/questions/79909853/teach-me-how-to-build-an-leetcode-clone
reactjs, typescript, clone, react-fullstack
1,773,827,417
se_79910716
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind CSS v4 arbitrary value classes (brackets []) not rendering in Next.js 16 with Turbopack
Tailwind CSS v4 arbitrary value classes (brackets []) not rendering in Next.js 16 with Turbopack I am using the latest Next.js 16.1.6 with Tailwind CSS v4.2.1 and React 19. When running the development server with Turbopack (next dev --turbo), arbitrary value classes like aspect-[12/5], z-[100], or h-[80vh] are correc...
https://stackoverflow.com/questions/79910716/tailwind-css-v4-arbitrary-value-classes-brackets-not-rendering-in-next-js-1
css, reactjs, next.js, tailwind-css, turbopack
1,773,928,108
se_78619993
stackoverflow
FRONTEND_DEVELOPMENT
How do I use testing-library to fire React&#39;s animationEnd event with a value for animationName?
How do I use testing-library to fire React&#39;s animationEnd event with a value for animationName? I have a React + TypeScript project where I want to use Jest and testing-library to confirm that a div element is removed from the DOM after a CSS animation completes. However, the removal must only happen after an ani...
https://stackoverflow.com/questions/78619993/how-do-i-use-testing-library-to-fire-reacts-animationend-event-with-a-value-for
reactjs, typescript, jestjs, react-testing-library, jsdom
1,718,309,641
se_51128176
stackoverflow
FRONTEND_DEVELOPMENT
ReactJS API Data Fetching CORS error
ReactJS API Data Fetching CORS error I've been trying to create a react web app for a few days now for my internship and I've encountered a CORS error. I am using the latest version of reactJS, and placing this in the create-react-app, and below is the code for fetching: componentDidMount() { fetch('--------------...
https://stackoverflow.com/questions/51128176/reactjs-api-data-fetching-cors-error
javascript, reactjs, cors
1,530,494,854
se_48319372
stackoverflow
FRONTEND_DEVELOPMENT
Changing font family of all Material UI components
Changing font family of all Material UI components Can we change the font family of Material UI components with less code? I have tried many ways but still, I can't able to do it. I have to change the font family individually which is really a lot of work. Are there any other ways to do that?
https://stackoverflow.com/questions/48319372/changing-font-family-of-all-material-ui-components
reactjs, material-ui
1,516,272,241
se_77407262
stackoverflow
FRONTEND_DEVELOPMENT
Error: Fast refresh only works when a file only exports components
Error: Fast refresh only works when a file only exports components import { lazy, Suspense } from "react"; import { ICustomRoute } from "../types"; import Loader from '../loader' const LoginPage = lazy(() => import("../pages/auth/login")); const LoginSuccessPage = lazy(() => import("../pages/auth/login/success")); ...
https://stackoverflow.com/questions/77407262/error-fast-refresh-only-works-when-a-file-only-exports-components
reactjs, vite
1,698,905,225
se_73230789
stackoverflow
FRONTEND_DEVELOPMENT
ReactJS: Autosave on fields within an accordion
ReactJS: Autosave on fields within an accordion I am using MUI Accordions and am trying to auto save the fields when the accordions are open. Currently I am using a button within each accordion (x5 - each button has a different class name): <Accordion> <AccordionSummary expandIcon={<ExpandMoreIcon />} aria-controls="p...
https://stackoverflow.com/questions/73230789/reactjs-autosave-on-fields-within-an-accordion
reactjs, material-ui
1,659,591,344
se_74474014
stackoverflow
FRONTEND_DEVELOPMENT
how to filter products based on category
how to filter products based on category I'm creating an e-commerce website where I show 3 options "body lotion", "body wash" and "body scrub" the customer can click on any of these options, and the respective product shows up. I have the products stored in the "U20Arr" and a "type" object key specifying whether it's ...
https://stackoverflow.com/questions/74474014/how-to-filter-products-based-on-category
javascript, reactjs, e-commerce
1,668,681,635
se_62493433
stackoverflow
FRONTEND_DEVELOPMENT
POST request using fetch with async/await on submit
POST request using fetch with async/await on submit I want to POST to a login form using React JSX and JWT API auth already installed. I don't want to use axios post, instead I want to use the hooks method useState, useEffect with async/await and onFormSubmit function. How do I POST the data values username and passwo...
https://stackoverflow.com/questions/62493433/post-request-using-fetch-with-async-await-on-submit
reactjs, post, async-await
1,592,701,933
se_32005252
stackoverflow
FRONTEND_DEVELOPMENT
Dynamic onClick and render in ReactJS
Dynamic onClick and render in ReactJS I'm new to React and I need some help figuring this out! I have a JSON object: var exampleJson = { title: "title", blocks: [ { type: "block1", items: [{id: "1", count: 1}, {id: "2", count: 1},] }, { ...
https://stackoverflow.com/questions/32005252/dynamic-onclick-and-render-in-reactjs
javascript, html, reactjs
1,439,539,778
se_60770821
stackoverflow
FRONTEND_DEVELOPMENT
Module not found: Can&#39;t resolve &#39;papaparse&#39; issue
Module not found: Can&#39;t resolve &#39;papaparse&#39; issue I worked with the CSV file and tryied for the first time to work with PapaParse to parse data from CSV file into the app. import Papa from 'papaparse'; .... .... useEffect(() => { Papa.parse('https://raw.githubusercontent.com/DeveloperCircleHub/H...
https://stackoverflow.com/questions/60770821/module-not-found-cant-resolve-papaparse-issue
reactjs, csv, papaparse
1,584,693,291
se_63000516
stackoverflow
FRONTEND_DEVELOPMENT
How to getByRole a button with image in React Testing Library
How to getByRole a button with image in React Testing Library The best possible selector we can use in React Testing Library is getByRole(). This is good because we can select our node by it's role and accessibility name. If we have a rendered component where we have multiple buttons - so I can't just use only getByRo...
https://stackoverflow.com/questions/63000516/how-to-getbyrole-a-button-with-image-in-react-testing-library
javascript, reactjs, react-testing-library
1,595,264,930
se_67478951
stackoverflow
FRONTEND_DEVELOPMENT
Why does component remount every state update?
Why does component remount every state update? EDIT: I made some stupid mistakes within my code prior to asking this question. I realise now that this question likely will not serve as useful to anyone as what I am saying is actually in itself misleading. Apologies and thank you to those that replied. I am currently ...
https://stackoverflow.com/questions/67478951/why-does-component-remount-every-state-update
javascript, reactjs, react-native, use-state
1,620,691,372
se_79909701
stackoverflow
FRONTEND_DEVELOPMENT
I have to implement an test scenario for payment can anyone recommend the free tool or module
I have to implement an test scenario for payment can anyone recommend the free tool or module I'm developing an order delivery app and need some guidance on creating test scenarios for payment implementation using React and Node.js. I'm looking for ideas on how to approach this, as I'm unsure where to start. Any sugge...
https://stackoverflow.com/questions/79909701/i-have-to-implement-an-test-scenario-for-payment-can-anyone-recommend-the-free-t
reactjs, node.js, express
1,773,808,527
se_69091435
stackoverflow
FRONTEND_DEVELOPMENT
How to ensure a React component has &#39;key&#39; prop in TypeScript
How to ensure a React component has &#39;key&#39; prop in TypeScript How can I type a typescript variable so that it requires a component with the key set? I want something like this: const foo: ReactElementWithKey = <div key="some key"></div> // all ok const bar: ReactElementWithKey = <div></div> // no `key` - typ...
https://stackoverflow.com/questions/69091435/how-to-ensure-a-react-component-has-key-prop-in-typescript
reactjs, typescript
1,631,030,813
se_79909500
stackoverflow
FRONTEND_DEVELOPMENT
Getting Floating UI to pin a popup on demand
Getting Floating UI to pin a popup on demand I can't get Floating UI with React to work the way I want it to. I've created a popup component that follows the mouse on mouse move. I can set the pinnedAt prop to cause the popup to pin in place but Floating UI continues to update the position of the pinned popup when ...
https://stackoverflow.com/questions/79909500/getting-floating-ui-to-pin-a-popup-on-demand
javascript, reactjs, floating-ui
1,773,772,664
se_74314894
stackoverflow
FRONTEND_DEVELOPMENT
Allowing access to process and process.env in Webpack 5
Allowing access to process and process.env in Webpack 5 I'm using environment variables to set the basename of a react-router-dom BrowserRouter. However, Webpack 5 does not allow accessing environment variables. From other stackoverflow questions, I've seen that using this: new webpack.ProvidePlugin({ process: 'pr...
https://stackoverflow.com/questions/74314894/allowing-access-to-process-and-process-env-in-webpack-5
javascript, node.js, reactjs, webpack, webpack-5
1,667,554,657
se_63519312
stackoverflow
FRONTEND_DEVELOPMENT
How to present a blurred version of an image in NextJS as it&#39;s being downloaded?
How to present a blurred version of an image in NextJS as it&#39;s being downloaded? I'm looking for a similar effect as this one below: I have done something similar with Gatsby, but I'm wondering if this is possible to do with NextJS?
https://stackoverflow.com/questions/63519312/how-to-present-a-blurred-version-of-an-image-in-nextjs-as-its-being-downloaded
javascript, reactjs, image, next.js, blur
1,597,998,655
se_79562593
stackoverflow
FRONTEND_DEVELOPMENT
Electron-vite + React + Tailwindcss v4
Electron-vite + React + Tailwindcss v4 Ive got tailwindcss v4 to work with other applications as a vite plugin in the vite.config.ts file. Similar to this: import { defineConfig } from "vite"; import tailwindcss from "@tailwindcss/vite"; export default defineConfig({ plugins: [ tailwindcss(), ], }); I'm unsur...
https://stackoverflow.com/questions/79562593/electron-vite-react-tailwindcss-v4
reactjs, electron, tailwind-css, tailwind-css-4, electron-vite
1,744,129,608
se_44596915
stackoverflow
FRONTEND_DEVELOPMENT
Jest: mocking console.error - tests fails
Jest: mocking console.error - tests fails The Problem: I have a simple React component I'm using to learn to test components with Jest and Enzyme. As I'm working with props, I added the prop-types module to check for properties in development. prop-types uses console.error to alert when mandatory props are not pass...
https://stackoverflow.com/questions/44596915/jest-mocking-console-error-tests-fails
javascript, reactjs, jestjs, enzyme
1,497,642,412
se_26658302
stackoverflow
FRONTEND_DEVELOPMENT
React vs Angular: Slow rendering with React
React vs Angular: Slow rendering with React I was doing a comparison of Angular and React and decided to try out a performance test to see how fast a large(ish) list would render in both frameworks. When I got done with my React prototype with some basic currency formating, it was taking ~2 seconds to render on my fa...
https://stackoverflow.com/questions/26658302/react-vs-angular-slow-rendering-with-react
angularjs, reactjs
1,414,686,321
se_74588071
stackoverflow
FRONTEND_DEVELOPMENT
How do I fix Blocked CORS with Firebase Hosting?
How do I fix Blocked CORS with Firebase Hosting? I have read many threads around this topic and I still can't wrap my head around it. I've built a web app that allows users to crawl their website sitemap and add it to a document in Firebase. I'm using Firebase hosting to host the web app, which was pushed to a subdoma...
https://stackoverflow.com/questions/74588071/how-do-i-fix-blocked-cors-with-firebase-hosting
javascript, reactjs, firebase, google-cloud-firestore, google-cloud-functions
1,669,531,651
se_73369210
stackoverflow
FRONTEND_DEVELOPMENT
Get value of submit button in `onSubmit` eventhandler in React
Get value of submit button in `onSubmit` eventhandler in React Normally, when I have a form, I would react to the onSubmit handler <form onSubmit={e => { ... } }> <input ... /> <input ... /> <button type="submit">Save</button> </form> This pattern also plays well with e.g. formik, that has an onSubmit event ...
https://stackoverflow.com/questions/73369210/get-value-of-submit-button-in-onsubmit-eventhandler-in-react
javascript, reactjs, forms
1,660,628,325
se_79635082
stackoverflow
FRONTEND_DEVELOPMENT
How do I get true rounded-corner &lt;Image&gt; without distortion or overflow?
How do I get true rounded-corner &lt;Image&gt; without distortion or overflow? I'm trying trying to round the corners of the <Image> components in React Native without breaking the layout or distorting the image. the images can have different sizes and shapes (rectangular or square ) and I'd like the images to have ro...
https://stackoverflow.com/questions/79635082/how-do-i-get-true-rounded-corner-image-without-distortion-or-overflow
reactjs, react-native
1,747,987,314
se_79752570
stackoverflow
FRONTEND_DEVELOPMENT
How to get restricted image via URL?
How to get restricted image via URL? I have been trying to get access to an image I uploaded to Cloudinary and later made it restricted. The method I want to use is using it's URL but for some reason no URL works and it's documentation doesn't mention how to get it using API key/Secret/token. The URL will be in a Reac...
https://stackoverflow.com/questions/79752570/how-to-get-restricted-image-via-url
javascript, reactjs, cloudinary
1,756,732,785
se_79655880
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind won&#39;t show light mode and only shows dark mode styles
Tailwind won&#39;t show light mode and only shows dark mode styles I made a toggle button to change to dark mode and light mode for the react project I'm working on. It does what it should, it correctly add and remove the "dark" class name from html tag and also local storage but the styles I see is just dark mode sty...
https://stackoverflow.com/questions/79655880/tailwind-wont-show-light-mode-and-only-shows-dark-mode-styles
javascript, reactjs, tailwind-css, darkmode
1,749,210,828
se_72544774
stackoverflow
FRONTEND_DEVELOPMENT
How to download the iframe as pdf document in react?I have tried using jspdf and kendo-react-pdf but getting blank document
How to download the iframe as pdf document in react?I have tried using jspdf and kendo-react-pdf but getting blank document import { PDFExport, savePDF } from '@progress/kendo-react-pdf'; const [contentRef, setContentRef] = useState(''); const downloadCertificate = () => { const element: any = document.q...
https://stackoverflow.com/questions/72544774/how-to-download-the-iframe-as-pdf-document-in-reacti-have-tried-using-jspdf-and
reactjs, kendo-ui, pdf-generation, jspdf
1,654,687,047
se_79907784
stackoverflow
FRONTEND_DEVELOPMENT
SVG Divider flex container not matching height of input in React
SVG Divider flex container not matching height of input in React I am building a Hero Section in React app and creating a search bar with a dropdown, input field and a vertical divider between them. The search box is a flex container. I want the vertical divider(SVG line) to have the same height as the input field as ...
https://stackoverflow.com/questions/79907784/svg-divider-flex-container-not-matching-height-of-input-in-react
css, reactjs, svg, jsx
1,773,560,337
se_56678250
stackoverflow
FRONTEND_DEVELOPMENT
React hook to wait until the previous call is complete
React hook to wait until the previous call is complete I am working on a react project which uses hooks. And I was assigned a task "change the useInterval hook, or create a new one (usePoll?). This should operate the same as useInterval, but should wait until the ajax request is complete before starting the timer". ...
https://stackoverflow.com/questions/56678250/react-hook-to-wait-until-the-previous-call-is-complete
reactjs, redux, react-hooks
1,560,998,497
se_79828171
stackoverflow
FRONTEND_DEVELOPMENT
Position sticky top animation works only when scrolling down, otherwise there is a jump
Position sticky top animation works only when scrolling down, otherwise there is a jump I have a sticky bar on the right side of my page and I want to animate its top property (and height) to nicely fit its transition to disappearing announcement bar at the top of the page. The video shows the current issue: when I ...
https://stackoverflow.com/questions/79828171/position-sticky-top-animation-works-only-when-scrolling-down-otherwise-there-is
html, css, reactjs
1,763,942,358
se_79899043
stackoverflow
FRONTEND_DEVELOPMENT
React Leaflet(js) Position Issue with ImageOverlay
React Leaflet(js) Position Issue with ImageOverlay I've been building a react component which uses Leaflet.js. I have a custom map image which ive put in as an ImageOverlay. I'm capturing map points from a different system and calibrating the coordinates from the source to the pixel position for Leaflet. Firstly the m...
https://stackoverflow.com/questions/79899043/react-leafletjs-position-issue-with-imageoverlay
reactjs, leaflet, position, overlay
1,772,399,899
se_34641582
stackoverflow
FRONTEND_DEVELOPMENT
What is the difference between React Native and React?
What is the difference between React Native and React? I have started to learn React out of curiosity and wanted to know the difference between React and React Native - though could not find a satisfactory answer using Google. React and React Native seems to have the same format. Do they have completely different synt...
https://stackoverflow.com/questions/34641582/what-is-the-difference-between-react-native-and-react
javascript, reactjs, react-native, javascript-framework
1,452,109,917
se_79907099
stackoverflow
FRONTEND_DEVELOPMENT
In React, s it really bad to call a potentially asynchronous function directly in render code?
In React, s it really bad to call a potentially asynchronous function directly in render code? I have a question regarding best practices in React.js. Recently, I came across a blogpost that claimed you shouldn't directly invoke a callback in React render code. And while intuitively I would agree to that statement (an...
https://stackoverflow.com/questions/79907099/in-react-s-it-really-bad-to-call-a-potentially-asynchronous-function-directly-i
javascript, reactjs
1,773,423,602
se_70490027
stackoverflow
FRONTEND_DEVELOPMENT
action=&quot;mailto:*email address*&quot; in form not working over HTTPS
action=&quot;mailto:*email address*&quot; in form not working over HTTPS I want to create a simple contact page for my website. I created a form like this (using React). <Form action="mailto:btrorapps@gmail.com" method="post" encType="text/plain" autocomplete="off" > It's got some Form controls to gather ...
https://stackoverflow.com/questions/70490027/action-mailtoemail-address-in-form-not-working-over-https
html, reactjs, forms, https, mailto
1,640,554,593
se_63614579
stackoverflow
FRONTEND_DEVELOPMENT
Passing custom props to a react component using typescript
Passing custom props to a react component using typescript I am pretty new to TypeScript and I am wondering if someone can give me an example of this React component converted to TypeScript: const Message = ({from, text}) => ( <div> <p>{text}</p> <p>from: {from}</p> </div> ); I have tried somethinig lik...
https://stackoverflow.com/questions/63614579/passing-custom-props-to-a-react-component-using-typescript
reactjs, typescript
1,598,525,966
se_68054722
stackoverflow
FRONTEND_DEVELOPMENT
How to import a Widget designed for JQuery in my React projet?
How to import a Widget designed for JQuery in my React projet? I'm trying to import this Widget designed for JQuery in my React projet : <script type="text/javascript" src="https://widget.mondialrelay.com/parcelshop-picker/jquery.plugin.mondialrelay.parcelshoppicker.min.js"> </script> This widget needs JQuery to work...
https://stackoverflow.com/questions/68054722/how-to-import-a-widget-designed-for-jquery-in-my-react-projet
javascript, jquery, reactjs, widget
1,624,183,599
se_79906770
stackoverflow
FRONTEND_DEVELOPMENT
Handling multiple mentor responses in a React chat application and determining the best answer
Handling multiple mentor responses in a React chat application and determining the best answer I am building a React-based chat application where users can ask questions and multiple mentors can respond to them. In many cases, different mentors provide different answers to the same question. I want to design the syste...
https://stackoverflow.com/questions/79906770/handling-multiple-mentor-responses-in-a-react-chat-application-and-determining-t
reactjs
1,773,394,534
se_55622768
stackoverflow
FRONTEND_DEVELOPMENT
Uncaught Invariant Violation: Rendered more hooks than during the previous render
Uncaught Invariant Violation: Rendered more hooks than during the previous render I have a component that looks like this (very simplified version): const component = (props: PropTypes) => { const [allResultsVisible, setAllResultsVisible] = useState(false); const renderResults = () => { return ( ...
https://stackoverflow.com/questions/55622768/uncaught-invariant-violation-rendered-more-hooks-than-during-the-previous-rende
javascript, reactjs, react-hooks
1,554,939,904
se_53594090
stackoverflow
FRONTEND_DEVELOPMENT
Preview the uploaded pictures in antd
Preview the uploaded pictures in antd I have implemented a PicturesWall component in my app similar to this one on the antd site: https://ant.design/components/upload/#components-upload-demo-picture-card. When the user uploads images, thumbnails are generated and the user can preview and delete them. Now, this is when...
https://stackoverflow.com/questions/53594090/preview-the-uploaded-pictures-in-antd
reactjs, antd
1,543,840,916
se_79905861
stackoverflow
FRONTEND_DEVELOPMENT
How to add built-in &quot;Add Task&quot; button in custom React Gantt library without forcing programmers to write manual state update logic every time?
How to add built-in &quot;Add Task&quot; button in custom React Gantt library without forcing programmers to write manual state update logic every time? I'm a very new programmer so please excuse how I am asking the question as I am not very well versed in React terminology. I'm currently trying to implement a feature...
https://stackoverflow.com/questions/79905861/how-to-add-built-in-add-task-button-in-custom-react-gantt-library-without-forc
reactjs, open-source, gantt-chart
1,773,286,055
se_79850778
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind height from array not working in Next.js
Tailwind height from array not working in Next.js I’m using Next.js with Tailwind CSS. I have an array of objects and I map over it to render sections. Each item has a height value that should control the Tailwind height class. const segments = [ { height: "screen", }, { height: "[200vh]", ...
https://stackoverflow.com/questions/79850778/tailwind-height-from-array-not-working-in-next-js
javascript, reactjs, next.js, tailwind-css
1,766,107,068
se_78995838
stackoverflow
FRONTEND_DEVELOPMENT
How to make responsive Toolbar (with collapsible overflowing buttons) without using setTimeout()?
How to make responsive Toolbar (with collapsible overflowing buttons) without using setTimeout()? I'm creating a toolbar for my richTextEditor (tiptap). I wanted the buttons overflowing editors width to hide under "more" button. I came across reddit post with flow explained, but I'm struggling with implementation. Red...
https://stackoverflow.com/questions/78995838/how-to-make-responsive-toolbar-with-collapsible-overflowing-buttons-without-us
reactjs, typescript, next.js, responsive-design, toolbar
1,726,607,543
se_79904573
stackoverflow
FRONTEND_DEVELOPMENT
placeholder disappears immediately when dropping item instead of waiting for overlay transition
placeholder disappears immediately when dropping item instead of waiting for overlay transition I'm using dnd-kit in a Next.js project to reorder items in a sidebar. Dragging works correctly, but there is a visual issue when the item is dropped. During dragging, I render a placeholder element (isPlaceholder) in the li...
https://stackoverflow.com/questions/79904573/placeholder-disappears-immediately-when-dropping-item-instead-of-waiting-for-ove
javascript, reactjs, drag-and-drop, dnd-kit
1,773,148,230
se_74131518
stackoverflow
FRONTEND_DEVELOPMENT
Is ResizeObserver API necessary or preferred in React?
Is ResizeObserver API necessary or preferred in React? We can already detect dimension change by using ref and useEffect in React: useEffect(() => { console.log("height changed to", ref.current?.clientHeight) }, [ref.current?.clientHeight]) I wonder what is the advantage of ResizeObserver over this ref + useEffect ...
https://stackoverflow.com/questions/74131518/is-resizeobserver-api-necessary-or-preferred-in-react
reactjs, react-hooks, resize-observer
1,666,211,265
se_73432185
stackoverflow
FRONTEND_DEVELOPMENT
How to use tailwind css code in simple html file which is used in react
How to use tailwind css code in simple html file which is used in react I used tailwind css code in react mostly in a css file where i used @apply. Now i want to switch to simple html with tailwind cdn so how can i do that? IT LOOKS LIKE THIS React code with tailwind And this is html file codesandbox https://codesandb...
https://stackoverflow.com/questions/73432185/how-to-use-tailwind-css-code-in-simple-html-file-which-is-used-in-react
html, css, reactjs, tailwind-css
1,661,063,778
se_64305218
stackoverflow
FRONTEND_DEVELOPMENT
Rails server &amp; React client: CORS issues despite same origin
Rails server &amp; React client: CORS issues despite same origin I have a Rails API server with rack-cors that allow access from localhost and server (Docker container name, to be accessed from a Node.js server, works fine with it). When I run any request to my server directly from my browser in localhost, it works pe...
https://stackoverflow.com/questions/64305218/rails-server-react-client-cors-issues-despite-same-origin
ruby-on-rails, reactjs, axios, cors
1,602,426,987
se_79904431
stackoverflow
FRONTEND_DEVELOPMENT
Android apps as a React Dev?
Android apps as a React Dev? What is the best way as a Full Stack React Developer, to create Android mobile apps?
https://stackoverflow.com/questions/79904431/android-apps-as-a-react-dev
android, reactjs, visual-studio-code
1,773,134,659
se_71550488
stackoverflow
FRONTEND_DEVELOPMENT
Stripe Not Sending Email Post Purchase
Stripe Not Sending Email Post Purchase I'm configuring Stripe and have the whole checkout process working, except for the fact that despite configuring the 'receipt_email' variable, Stripe does not send me an email with the receipt after a (test) purchase has been made. const response = await stripe.confirmPayment({ ...
https://stackoverflow.com/questions/71550488/stripe-not-sending-email-post-purchase
javascript, node.js, reactjs, email, stripe-payments
1,647,808,835
se_62240402
stackoverflow
FRONTEND_DEVELOPMENT
mui-datatables custom search
mui-datatables custom search how do I add a custom search in mui-datatables which can be used for data fetched from API. can u please provide me a working example? I tried using customSearch: (searchQuery, currentRow, columns) => { let isFound = false; currentRow.forEach(col => { if (col.toString().in...
https://stackoverflow.com/questions/62240402/mui-datatables-custom-search
reactjs, material-ui, mui-datatable
1,591,499,656
se_75363670
stackoverflow
FRONTEND_DEVELOPMENT
Unable to redirect after login in React app using AWS Cognito
Unable to redirect after login in React app using AWS Cognito I'm learning React as I need to write an AWS app using Cognito. This series of videos is very helpful (https://www.youtube.com/watch?v=R-3uXlTudSQ&list=PLDckhLrNepPR8y-9mDXsLutiwsLhreOk1&index=3&t=300s) but it doesn't explain how you redirect your app after...
https://stackoverflow.com/questions/75363670/unable-to-redirect-after-login-in-react-app-using-aws-cognito
reactjs, amazon-web-services, amazon-cognito
1,675,699,072
se_65902664
stackoverflow
FRONTEND_DEVELOPMENT
Next.js - router.push without scrolling to the top
Next.js - router.push without scrolling to the top I am using router from next by importing useRouter from next/router. I am trying to find a solution which will not scroll to the top of the page when I change the query of the URL. Is there any solution? I know that Link component from Next has that option, but I need...
https://stackoverflow.com/questions/65902664/next-js-router-push-without-scrolling-to-the-top
javascript, reactjs, routes, next.js, next-router
1,611,669,220
se_51794072
stackoverflow
FRONTEND_DEVELOPMENT
React Beautiful Dnd : after dropping the item, source and destination indices are undefined
React Beautiful Dnd : after dropping the item, source and destination indices are undefined I'm new to react.js and trying to create a basic Drag and Drop using react-beautiful-dnd. I'm unable to find te issue after multiple tries, below is the code, drag and drop is fine but after dropping list is not reordering ba...
https://stackoverflow.com/questions/51794072/react-beautiful-dnd-after-dropping-the-item-source-and-destination-indices-ar
reactjs
1,533,935,352
se_78365383
stackoverflow
FRONTEND_DEVELOPMENT
Expo app in Production mode using clerk service for authentication
Expo app in Production mode using clerk service for authentication I'm working with react native expo application. I'm using clerk for auth I have just complete my app and i have changed to apk format. But the login is not working. I am getting a blank screen, so I have changed the clerk config to production and added...
https://stackoverflow.com/questions/78365383/expo-app-in-production-mode-using-clerk-service-for-authentication
reactjs, react-native, dns, expo, clerk
1,713,779,812
se_79903675
stackoverflow
FRONTEND_DEVELOPMENT
When configuring a new vite react.js project, how can I avoid interactive CLI
When configuring a new vite react.js project, how can I avoid interactive CLI I would like to start new react.js project using vite from a script and have it not prompt me interactively for input. Below is my current command cd /;npm create vite@latest --yes /learn_reactjs_scrimba/static/digital_business_card_app -- -...
https://stackoverflow.com/questions/79903675/when-configuring-a-new-vite-react-js-project-how-can-i-avoid-interactive-cli
reactjs, vite
1,773,041,970
se_79271822
stackoverflow
FRONTEND_DEVELOPMENT
How to configure tanstack router, using feature based folder structure
How to configure tanstack router, using feature based folder structure I am switching from react router to tanstack router. Filebased routing is the goal, along with the usage of this folder structure: src/ main.ts pages/ __root.tsx home/ index.ts Home.tsx Home.styled.ts BTW: I renamed t...
https://stackoverflow.com/questions/79271822/how-to-configure-tanstack-router-using-feature-based-folder-structure
reactjs, tanstack-router
1,733,922,306
se_76663139
stackoverflow
FRONTEND_DEVELOPMENT
Need to render Office files (doc,excel,pptx) on UI using ReactJS
Need to render Office files (doc,excel,pptx) on UI using ReactJS I need to render my Office files (docx,excel,pptx) on the UI without using Google Viewer or Microsoft Document Viewer as those are using some online server calls to make those rendering possible? But i want to just render it directly from my front end co...
https://stackoverflow.com/questions/76663139/need-to-render-office-files-doc-excel-pptx-on-ui-using-reactjs
javascript, reactjs, ms-word, frontend, aspose.words
1,689,086,459
se_77961178
stackoverflow
FRONTEND_DEVELOPMENT
Custom rendering of PowerPoint documents in a React app
Custom rendering of PowerPoint documents in a React app I would like to render uploaded .pptx files directly in my React app, but I would like to have control over the design of the rendered view. Meaning that, instead of relying on the renderer provided by Microsoft, I'd like to have control at least over how the doc...
https://stackoverflow.com/questions/77961178/custom-rendering-of-powerpoint-documents-in-a-react-app
javascript, reactjs, powerpoint, rendering
1,707,390,711
se_79902079
stackoverflow
FRONTEND_DEVELOPMENT
Using Django Admin vs building a custom React admin panel for an online pharmacy website
Using Django Admin vs building a custom React admin panel for an online pharmacy website I am working on an online pharmacy website with the following stack: Backend: Django Frontend (customer interface): React Currently, I am thinking about how to implement the admin panel for managing the website. My question is...
https://stackoverflow.com/questions/79902079/using-django-admin-vs-building-a-custom-react-admin-panel-for-an-online-pharmacy
reactjs, django, admin-panel
1,772,783,495
se_76311104
stackoverflow
FRONTEND_DEVELOPMENT
Why do we import the &quot;core-js/stable&quot; library?
Why do we import the &quot;core-js/stable&quot; library? I'm in the process of optimizing a React project. I can see "core-js/stable" is used. Is this package still required for the latest browser versions, since most browsers support ES6 features?
https://stackoverflow.com/questions/76311104/why-do-we-import-the-core-js-stable-library
reactjs, babeljs, create-react-app, polyfills, core-js
1,684,812,203
se_75238007
stackoverflow
FRONTEND_DEVELOPMENT
React App using react-beautiful-dnd ERROR &quot;Unable to find any drag handles in the context &#39;0&#39; &quot;
React App using react-beautiful-dnd ERROR &quot;Unable to find any drag handles in the context &#39;0&#39; &quot; What is the promlem? PlayerList.tsx import React, { FC } from "react"; import players from "../../store/players"; import { observer } from "mobx-react-lite"; import { Draggable } from "react-beautiful-dnd"...
https://stackoverflow.com/questions/75238007/react-app-using-react-beautiful-dnd-error-unable-to-find-any-drag-handles-in-th
reactjs, typescript, webpack, mobx, react-beautiful-dnd
1,674,669,614
se_75496210
stackoverflow
FRONTEND_DEVELOPMENT
Run async code in nextjs component without using UseEffect
Run async code in nextjs component without using UseEffect In my nextjs app, I have a StrapiImage component that accepts an image object from my strapi backend api as a prop. It assigns the width, height and url + any aditional props (it's basically a shortcut for a regular next/image): import Image from "next/image";...
https://stackoverflow.com/questions/75496210/run-async-code-in-nextjs-component-without-using-useeffect
javascript, reactjs, next.js, server-side-rendering
1,676,752,164
se_73398821
stackoverflow
FRONTEND_DEVELOPMENT
Formik passing context to yup validation
Formik passing context to yup validation I've searched the internet literally everywhere, and also the docs but I couldn't find a solution that works in my current project. Quick bit of context: We have a form, which displays additional fields depending on whether you're adding or editing. When adding, we have 2 diffe...
https://stackoverflow.com/questions/73398821/formik-passing-context-to-yup-validation
javascript, reactjs, validation, formik, yup
1,660,806,818
se_77133696
stackoverflow
FRONTEND_DEVELOPMENT
Unable to resolve module ./.expo/.virtual-metro-entry
Unable to resolve module ./.expo/.virtual-metro-entry Actually I have installed unimodule previously was running react native cli because of tensorflow/tfjs-react-native I have to install unimodule but whenever I am doing yarn android I am getting below error Error: Unable to resolve module ./.expo/.virtual-metro-entr...
https://stackoverflow.com/questions/77133696/unable-to-resolve-module-expo-virtual-metro-entry
reactjs, react-native, tensorflow, react-hooks, expo
1,695,118,718
se_72969141
stackoverflow
FRONTEND_DEVELOPMENT
Cookies are set in local but not in production
Cookies are set in local but not in production I'm using React + Next js on the frontend, Node.JS Express on the backend. While working on localhost, I was able to set cookies in backend response. But when I moved it to digitalocean, I could not perform this operation. I am working on the same server, two different po...
https://stackoverflow.com/questions/72969141/cookies-are-set-in-local-but-not-in-production
reactjs, cookies, next.js
1,657,727,349
se_79899006
stackoverflow
FRONTEND_DEVELOPMENT
Where does .NET stand in a world of &quot;Prompt-to-App&quot; builders?
Where does .NET stand in a world of &quot;Prompt-to-App&quot; builders? I’m managing a team where the veteran devs are all-in on .NET, but the new hires won’t touch it. They’re addicted to the speed of "vibe coding" with v0 and Bolt. They basically prompt a Next.js/Tailwind frontend, deploy to Vercel, and call it a da...
https://stackoverflow.com/questions/79899006/where-does-net-stand-in-a-world-of-prompt-to-app-builders
reactjs, .net, next.js, vercel, shadcnui
1,772,394,928
se_35351706
stackoverflow
FRONTEND_DEVELOPMENT
How to render a multi-line text string in React
How to render a multi-line text string in React Suppose I have a text string that contains line-breaks, and I render it like this: render() { var text = "One\nTwo\nThree"; return <div>{text}</div>; } In HTML the line-breaks don't render as line-breaks. How should I do this in React? I don't want to convert ...
https://stackoverflow.com/questions/35351706/how-to-render-a-multi-line-text-string-in-react
reactjs
1,455,231,184
se_79901372
stackoverflow
FRONTEND_DEVELOPMENT
React native cross platform mobile app - font, weight, height issue
React native cross platform mobile app - font, weight, height issue I have worked on the react native app to create cross platform mobile application. On that I have faced the issue in the width and height and font size related. Those issue are occured based on mobile device display size and font size. I have created ...
https://stackoverflow.com/questions/79901372/react-native-cross-platform-mobile-app-font-weight-height-issue
android, css, ios, reactjs, react-native
1,772,696,129
se_72634836
stackoverflow
FRONTEND_DEVELOPMENT
Webpack 5 Web-Worker has the wrong path after build. React 18, Electron
Webpack 5 Web-Worker has the wrong path after build. React 18, Electron I recently upgraded my app to react 18 and it is going smoother than I thought. I had to change how web workers worked with webpack 5 and I have followed the documentation. const myWorker = new PromiseWorker(new Worker(new URL('../worker.ts', impo...
https://stackoverflow.com/questions/72634836/webpack-5-web-worker-has-the-wrong-path-after-build-react-18-electron
javascript, reactjs, electron, web-worker, webpack-5
1,655,310,597
se_74670210
stackoverflow
FRONTEND_DEVELOPMENT
Binding element &#39;children&#39; implicitly has an &#39;any&#39; type.ts(7031) in Next.js
Binding element &#39;children&#39; implicitly has an &#39;any&#39; type.ts(7031) in Next.js While developing my personal portfolio using Next.js, I ran into an error where the prop "children" was not working. I am using tsx. Layout.tsx import styles from "./layout.module.css"; export default function Layout({ childre...
https://stackoverflow.com/questions/74670210/binding-element-children-implicitly-has-an-any-type-ts7031-in-next-js
javascript, reactjs, typescript, next.js, tsx
1,670,097,418
se_74285348
stackoverflow
FRONTEND_DEVELOPMENT
Does closing a command line window stop an Expo server?
Does closing a command line window stop an Expo server? I'm developing an app using Expo. I know to close an expo server you press Ctrl + C, but if I just close the command line window will the server close? I closed the CLI without using Ctrl + C to close the server, and am wondering if it's still running.
https://stackoverflow.com/questions/74285348/does-closing-a-command-line-window-stop-an-expo-server
reactjs, react-native, expo, expo-go
1,667,371,877
se_79752445
stackoverflow
FRONTEND_DEVELOPMENT
I&#39;m unable to send events to iframes stored in cache, not in dom React
I&#39;m unable to send events to iframes stored in cache, not in dom React I'm working on a React app where I dynamically create multiple iframes and cache them for later reuse. I want to: Preload iframes without immediately appending them to the visible DOM Store them in a cache (useRef with a Map) so I can reuse th...
https://stackoverflow.com/questions/79752445/im-unable-to-send-events-to-iframes-stored-in-cache-not-in-dom-react
reactjs, iframe
1,756,725,689
se_42657330
stackoverflow
FRONTEND_DEVELOPMENT
React On Rails gem with Rails API
React On Rails gem with Rails API I'm trying to run React on top of a Rails API. I created the Rails app with the --api flag so I could make it as minimalist as possible and I chose the react_on_rails gem to make React work on top of that, since it seemed to be a nice way to decouple both client and server application...
https://stackoverflow.com/questions/42657330/react-on-rails-gem-with-rails-api
ruby-on-rails, reactjs, rails-api, react-on-rails
1,488,917,146
se_78847278
stackoverflow
FRONTEND_DEVELOPMENT
change Emmet abbreviation &quot;..&quot; from &#39;styleName&#39; to &#39;className&#39;
change Emmet abbreviation &quot;..&quot; from &#39;styleName&#39; to &#39;className&#39; In reactJs, using the '..' in emmet abbreviation will transform div..parent to this <div styleName={styles.parent}></div> but does anyone know the abbreviation that uses className instead of styleName? there's no answer in the E...
https://stackoverflow.com/questions/78847278/change-emmet-abbreviation-from-stylename-to-classname
reactjs, emmet
1,723,105,360
se_67729838
stackoverflow
FRONTEND_DEVELOPMENT
Next JS Build Swiper JS Issue with Tailwind CSS
Next JS Build Swiper JS Issue with Tailwind CSS I set a project with NextJS, Tailwind CSS and Swiper JS. When I run Yarn Dev I can successfully display my Swiper Slider without any error However, once I built the project and run Start I am facing a broken slider with no navigation but I can still swipe but I get a bl...
https://stackoverflow.com/questions/67729838/next-js-build-swiper-js-issue-with-tailwind-css
reactjs, build, next.js, tailwind-css, swiper.js
1,622,148,773