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_56520314
stackoverflow
FRONTEND_DEVELOPMENT
Using Jest even after doing fetch.mockResponse actual fetch is getting called
Using Jest even after doing fetch.mockResponse actual fetch is getting called I am new to react and trying to writing my first test case using Jest. I have to mock a fetch response. I am using jest-fetch-mock. But the call is going to actual fetch and data returned is undefined. package.json : "jest-fetch-mock": "^2...
https://stackoverflow.com/questions/56520314/using-jest-even-after-doing-fetch-mockresponse-actual-fetch-is-getting-called
reactjs, jestjs, jest-fetch-mock
1,560,138,755
se_49271049
stackoverflow
FRONTEND_DEVELOPMENT
Getting all font families in React JS
Getting all font families in React JS I am new to ReactJS. I am trying to display all the font families in a dropdown, so that if i select one of the font family the text (displayed in a SVG) font-family will change. I know in .net we can use System.Drawing.FontFamily.Families to get all the font familes. Like wise i...
https://stackoverflow.com/questions/49271049/getting-all-font-families-in-react-js
css, reactjs, drop-down-menu, font-family, google-fonts
1,521,008,952
se_79936840
stackoverflow
FRONTEND_DEVELOPMENT
How to properly fetch data inside useEffect without causing unnecessary re-renders or bugs
How to properly fetch data inside useEffect without causing unnecessary re-renders or bugs I'm currently learning React and working on improving my frontend development skills. I understand the basics of JSX, components, and props, but I'm struggling with more advanced concepts like state management, hooks (especially...
https://stackoverflow.com/questions/79936840/how-to-properly-fetch-data-inside-useeffect-without-causing-unnecessary-re-rende
reactjs
1,778,053,255
se_76655326
stackoverflow
FRONTEND_DEVELOPMENT
How to mock localStorage for typescript unit tests
How to mock localStorage for typescript unit tests Is there a way to mock localStorage with Jest? I have tried many answers from this question however, none seemed to work on typescript as I keep getting: "ReferenceError: localStorage is not defined" I also tried to make my own mock setup file: export const localStora...
https://stackoverflow.com/questions/76655326/how-to-mock-localstorage-for-typescript-unit-tests
reactjs, typescript, npm, jestjs, local-storage
1,689,003,787
se_53736424
stackoverflow
FRONTEND_DEVELOPMENT
How to render an HTML table in React Native?
How to render an HTML table in React Native? In my project, I'm fetching a json response from server which is an html content. I've used react-native-render-html to render the html.But the table contents are not displaying. Is there any method to display html table in react native? How could that be possible? Any he...
https://stackoverflow.com/questions/53736424/how-to-render-an-html-table-in-react-native
javascript, html, reactjs, react-native, render-html
1,544,591,365
se_68394795
stackoverflow
FRONTEND_DEVELOPMENT
How to style svg title tooltip in React
How to style svg title tooltip in React In svg file have this svg: <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16.2856 2H19.5522C20.9037 2 22.0001 3.1059 22.0001 4.47018V7.7641C22.0001 9.12735 20.9037 10.2343 19.552...
https://stackoverflow.com/questions/68394795/how-to-style-svg-title-tooltip-in-react
reactjs, svg
1,626,355,790
se_61261522
stackoverflow
FRONTEND_DEVELOPMENT
Module parse failed:.You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.&quot;
Module parse failed:.You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.&quot; I am facing the below error. I tried with all solutions mentioned in other post related to the same issue. But no luck. Please help. Error:- **ERROR in ./src/index.js 6:16 ...
https://stackoverflow.com/questions/61261522/module-parse-failed-you-may-need-an-appropriate-loader-to-handle-this-file-type
reactjs, webpack, webpack-4
1,587,078,288
se_51997381
stackoverflow
FRONTEND_DEVELOPMENT
Checkbox for specific row in react-table?
Checkbox for specific row in react-table? import React, { Component } from 'react'; import { connect } from 'react-redux'; import getSchoolsList from '../Actions/Index'; import ReactTable from "react-table"; import checkboxHOC from "react-table/lib/hoc/selectTable"; import "react-table/react-table...
https://stackoverflow.com/questions/51997381/checkbox-for-specific-row-in-react-table
reactjs, checkbox, react-table
1,535,084,032
se_52247090
stackoverflow
FRONTEND_DEVELOPMENT
react native app works on debug mode, but not works release mode on ios
react native app works on debug mode, but not works release mode on ios I Have an app on react native. Debug mode works on ios. But Release mode not works. I tried change the optimization level but not helped. The problem that I don't see any error. Just not working some functional. And I can't debug release version ...
https://stackoverflow.com/questions/52247090/react-native-app-works-on-debug-mode-but-not-works-release-mode-on-ios
ios, reactjs, react-native, react-redux, saga
1,536,514,934
se_71033744
stackoverflow
FRONTEND_DEVELOPMENT
How to check if a value exists in an array using .includes?
How to check if a value exists in an array using .includes? I know we can use .includes but I've been struggling to get it to work with my array. What I want from my function is to check if the value already exists and if it does, then remove it from the array. The value is a string. That value comes from an object th...
https://stackoverflow.com/questions/71033744/how-to-check-if-a-value-exists-in-an-array-using-includes
javascript, arrays, reactjs, next.js
1,644,322,514
se_68932621
stackoverflow
FRONTEND_DEVELOPMENT
Show A Warning If Page is Closed or Refreshed in ReactJS
Show A Warning If Page is Closed or Refreshed in ReactJS I need the user to confirm if they want to continue to close or refresh the page. If they press "No"/decline it won't close nor refresh the page. useEffect(() => { window.addEventListener("beforeunload", alertUser); return () => { window.removeEventListe...
https://stackoverflow.com/questions/68932621/show-a-warning-if-page-is-closed-or-refreshed-in-reactjs
javascript, reactjs, react-hooks, ecmascript-6
1,629,952,752
se_76288083
stackoverflow
FRONTEND_DEVELOPMENT
How can I make my React-Tailwind navbar and hero elements fit the screen height?
How can I make my React-Tailwind navbar and hero elements fit the screen height? I have a little problem with my current project. It is a react project with tailwind and I'm trying to style so when the users lands on the page the main elements (navbar and hero fits the whole screen height. If you know how to do it swi...
https://stackoverflow.com/questions/76288083/how-can-i-make-my-react-tailwind-navbar-and-hero-elements-fit-the-screen-height
css, reactjs, jsx, tailwind-css, tsx
1,684,491,055
se_64189387
stackoverflow
FRONTEND_DEVELOPMENT
Send a new config to gtag when a new &quot;page&quot; is loaded in an SPA does not show the new path in realtime analytics
Send a new config to gtag when a new &quot;page&quot; is loaded in an SPA does not show the new path in realtime analytics I have React SPA when I use gtag to track users in Google Analytics. I am confused with data which I see in Real-Time Google Analytics. When app starts or user is routed to new react route I fired...
https://stackoverflow.com/questions/64189387/send-a-new-config-to-gtag-when-a-new-page-is-loaded-in-an-spa-does-not-show-th
reactjs, google-analytics, pageviews, gtag.js
1,601,762,204
se_57586499
stackoverflow
FRONTEND_DEVELOPMENT
Component doesn&#39;t re-render after delete request
Component doesn&#39;t re-render after delete request I have problem that after deleting element from my list, component doesn't want to re-render. When I go through routing to some subpage and then back, item is already removed, same if I sort list, then it also disappears. The thing is that I don't want to force user...
https://stackoverflow.com/questions/57586499/component-doesnt-re-render-after-delete-request
javascript, reactjs, fetch
1,566,372,318
se_62856087
stackoverflow
FRONTEND_DEVELOPMENT
implement select2 tagbox in reactjs from surveyjs
implement select2 tagbox in reactjs from surveyjs hi im using the surveyjs to create my react survey and there is a question type that i need which is custom widget:Select2 tagbox questiontype but nothing i try works. has anyone been able to solve this even when i change the "type" to "celltype" that does not work eit...
https://stackoverflow.com/questions/62856087/implement-select2-tagbox-in-reactjs-from-surveyjs
reactjs, surveyjs
1,594,515,703
se_61652200
stackoverflow
FRONTEND_DEVELOPMENT
React date format with Moment.js
React date format with Moment.js Consider: var start_date = ["2020-05-07 18:30:00"]; var header_date_array = ["2020-05-07 12:59:12 PM", "2020-05-07 14:29:12 PM", "2020-05-07 18:30:00 PM", "2020-05-07 20:29:12 PM"]; // Match or compare date with the same format. // What should I do? // This is my logic, but it is n...
https://stackoverflow.com/questions/61652200/react-date-format-with-moment-js
javascript, reactjs, date, momentjs, date-parsing
1,588,836,814
se_53964253
stackoverflow
FRONTEND_DEVELOPMENT
Unable to install Flow for React in Laravel project
Unable to install Flow for React in Laravel project I am developing a Laravel application. For the front end, I am using React JS. Now I am trying to integrate Flow into my project. I followed this link https://flow.org/en/docs/install/. But not working. I run this command in the root folder npm install --save-dev ...
https://stackoverflow.com/questions/53964253/unable-to-install-flow-for-react-in-laravel-project
reactjs, laravel, flowtype, laravel-mix
1,546,030,941
se_71033863
stackoverflow
FRONTEND_DEVELOPMENT
How to end peer connection in React Native
How to end peer connection in React Native How can I end peer connection when using react-native-peerjs. The connection is successful and the call works. But at the point of ending the call, I haven't found a disconnect function, so the call still goes on in background till I restart the app. My connection is like thi...
https://stackoverflow.com/questions/71033863/how-to-end-peer-connection-in-react-native
reactjs, react-native, webrtc, peerjs, react-native-webrtc
1,644,323,065
se_63132548
stackoverflow
FRONTEND_DEVELOPMENT
React navigation 5 error Binding element &#39;navigation&#39; implicitly has an &#39;any&#39; type.ts
React navigation 5 error Binding element &#39;navigation&#39; implicitly has an &#39;any&#39; type.ts I am new to react-native. I am trying to implement navigation using react-navigation 5. I have two screens Home and profile. These both components have received a navigation prop but typescript is giving me follwoing ...
https://stackoverflow.com/questions/63132548/react-navigation-5-error-binding-element-navigation-implicitly-has-an-any-ty
javascript, reactjs, typescript, react-native, react-navigation
1,595,933,883
se_79921403
stackoverflow
FRONTEND_DEVELOPMENT
How to improve initial load performance in React for content-heavy website?
How to improve initial load performance in React for content-heavy website? I’m building a learning platform using React and facing slow initial load times due to large content and components. What are the best ways to optimize performance (lazy loading, code splitting, etc.)? I Already do But Can Beat To Next.JS SEO
https://stackoverflow.com/questions/79921403/how-to-improve-initial-load-performance-in-react-for-content-heavy-website
html, reactjs, next.js, seo, ranking
1,775,553,156
se_58391816
stackoverflow
FRONTEND_DEVELOPMENT
X-Content-Encoding-Over-Network in Response Header but not Content-Encoding
X-Content-Encoding-Over-Network in Response Header but not Content-Encoding I'm trying to compress the code written with Next.js using Gzip deliver with Nginx and NodeJS server. It seems the config is working when I use curl -H "Content-Encoding: gzip" to verify. But come to real browser (Chrome, Firefox) I cannot ...
https://stackoverflow.com/questions/58391816/x-content-encoding-over-network-in-response-header-but-not-content-encoding
node.js, reactjs, nginx, gzip, next.js
1,571,132,906
se_56891140
stackoverflow
FRONTEND_DEVELOPMENT
ag-grid react: gridApi is undefined
ag-grid react: gridApi is undefined I am attempting to use the function sizeColumnsToFit() from the Grid API for my ag-grid table. When calling this function, I receive the error that "TypeError: Cannot read property 'sizeColumnsToFit' of undefined" I am attempting basically recreate the example in this link: https:/...
https://stackoverflow.com/questions/56891140/ag-grid-react-gridapi-is-undefined
reactjs, ag-grid-react
1,562,254,849
se_76769141
stackoverflow
FRONTEND_DEVELOPMENT
How to record audio from microphone and speaker in ReactJS with TypeScript and send it to the server for transcription?
How to record audio from microphone and speaker in ReactJS with TypeScript and send it to the server for transcription? I'm working on a ReactJS project with TypeScript where I need to implement an audio recording feature that captures audio from both the microphone and speaker simultaneously. The recorded audio shoul...
https://stackoverflow.com/questions/76769141/how-to-record-audio-from-microphone-and-speaker-in-reactjs-with-typescript-and-s
reactjs, typescript, socket.io, audio-recording, transcription
1,690,358,506
se_76769141
stackoverflow
FRONTEND_DEVELOPMENT
How to record audio from microphone and speaker in ReactJS with TypeScript and send it to the server for transcription?
How to record audio from microphone and speaker in ReactJS with TypeScript and send it to the server for transcription? I'm working on a ReactJS project with TypeScript where I need to implement an audio recording feature that captures audio from both the microphone and speaker simultaneously. The recorded audio shoul...
https://stackoverflow.com/questions/76769141/how-to-record-audio-from-microphone-and-speaker-in-reactjs-with-typescript-and-s
reactjs, typescript, socket.io, audio-recording, transcription
1,690,358,506
se_45710457
stackoverflow
FRONTEND_DEVELOPMENT
Re-render component onClick in reactjs
Re-render component onClick in reactjs I have a component and in that component there's a onClick method defined. On that method,i'm calling for back end and getting some response. values taken from the back end call is set only after i refresh my browser. Is there a way to re render my component with refreshing the b...
https://stackoverflow.com/questions/45710457/re-render-component-onclick-in-reactjs
javascript, reactjs
1,502,877,387
se_72489140
stackoverflow
FRONTEND_DEVELOPMENT
React 18 strict mode causing component to render twice
React 18 strict mode causing component to render twice The changes to strict-mode in React version 18 causes my code to render twice, which causes an error in axios abort controller, but I don't know how to clear the error from the browser console after the app renders twice. Please note: I am working on a sign-up / l...
https://stackoverflow.com/questions/72489140/react-18-strict-mode-causing-component-to-render-twice
javascript, reactjs, development-environment, react-strictmode
1,654,256,745
se_79585078
stackoverflow
FRONTEND_DEVELOPMENT
React context: Should I use the .Provider property?
React context: Should I use the .Provider property? Looking at the React documentation for Context, the context is used without the .Provider property: import { LevelContext } from './LevelContext.js'; /* LevelContext is defined as export const LevelContext = createContext(0); */ export default function Section({ ch...
https://stackoverflow.com/questions/79585078/react-context-should-i-use-the-provider-property
reactjs, react-context
1,745,258,329
se_71412727
stackoverflow
FRONTEND_DEVELOPMENT
How to debug `create-react-app`s in visual studio code?
How to debug `create-react-app`s in visual studio code? I tried suggestions made here and in other places, but can't get the vscode debugger to work properly, I.E. breakpoints never become active 🔴 and of course they don't break. The application is normally ran with npm start which calls react-scripts start. I've tr...
https://stackoverflow.com/questions/71412727/how-to-debug-create-react-apps-in-visual-studio-code
node.js, reactjs, visual-studio-code, create-react-app, react-scripts
1,646,843,267
se_77069771
stackoverflow
FRONTEND_DEVELOPMENT
Cannot close popup login MSAL with React
Cannot close popup login MSAL with React im trying to login using MSAL with react. I make code for recover the token generated by MSAL (for later use it with fetch methods); in the process i use the method loginPopup() for open a popup where the user must put his access account data from Microsoft, when finalized this...
https://stackoverflow.com/questions/77069771/cannot-close-popup-login-msal-with-react
reactjs, azure, popup, token, msal.js
1,694,205,792
se_74388491
stackoverflow
FRONTEND_DEVELOPMENT
How to access httpOnly cookies in Next.js?
How to access httpOnly cookies in Next.js? Can anyone suggest what would be the best way to access tokens from httpOnly cookies? I'm using Next.js 12.x.x as the front end (http://localhost:3000). My API server runs separately (http://localhost:4000). Once login, the API server returns the JWT token. I am storing token...
https://stackoverflow.com/questions/74388491/how-to-access-httponly-cookies-in-next-js
reactjs, cookies, next.js, apollo-client
1,668,080,733
se_53914013
stackoverflow
FRONTEND_DEVELOPMENT
Failed to compile. Module not found: Can&#39;t resolve &#39;react-router-dom&#39;
Failed to compile. Module not found: Can&#39;t resolve &#39;react-router-dom&#39; After npm start, the browser gives the error: Failed to compile ./src/components/App/App.js Module not found: Can't resolve 'react-router-dom'. React-router-dom has been added to the dependencies in npm and so has react-router and reac...
https://stackoverflow.com/questions/53914013/failed-to-compile-module-not-found-cant-resolve-react-router-dom
javascript, node.js, reactjs, react-router-dom
1,545,657,530
se_50058626
stackoverflow
FRONTEND_DEVELOPMENT
How to reset radio button?
How to reset radio button? I am trying to reset the radio button, after adding some form data, but it's not happening in react. In the add method, I am trying to set the state value of the radio button to blank. I tried different ways to make the radio button again blank. None of them is working I see some react js ra...
https://stackoverflow.com/questions/50058626/how-to-reset-radio-button
reactjs, react-router
1,524,818,765
se_38207790
stackoverflow
FRONTEND_DEVELOPMENT
React-Grid-Layout: How to re-render items on resize
React-Grid-Layout: How to re-render items on resize I am using react-grid-layout and react-custom-scrollbars to create a grid of panels. Here's a simplifed version of the code: class GridLayoutWithScrollableItems extends React.Component { onResize() { this.setState({forceRenderAfterResize: Date.now()}) ...
https://stackoverflow.com/questions/38207790/react-grid-layout-how-to-re-render-items-on-resize
javascript, reactjs, react-grid-layout
1,467,734,102
se_48519973
stackoverflow
FRONTEND_DEVELOPMENT
Error in Execution ReactDOM.render(&lt;App /&gt;, document.getElementById(&#39;root&#39;));
Error in Execution ReactDOM.render(&lt;App /&gt;, document.getElementById(&#39;root&#39;)); I am trying to run my react code which works fine in local environment but when moving to a production server getting the following error: Project is running at http://localhost:8123/ webpack output is served from / Content no...
https://stackoverflow.com/questions/48519973/error-in-execution-reactdom-renderapp-document-getelementbyidroot
javascript, node.js, reactjs, react-native
1,517,310,657
se_56108566
stackoverflow
FRONTEND_DEVELOPMENT
how to apply pagination to a dynamic table in react js
how to apply pagination to a dynamic table in react js I'm trying to apply pagination to a dynamic table which is created by fetching data from an API. I've applied pagination while I was creating bootstrap cards from the same data but I don't know how to do this when creating a table. here is the code on which I wan...
https://stackoverflow.com/questions/56108566/how-to-apply-pagination-to-a-dynamic-table-in-react-js
javascript, reactjs, twitter-bootstrap, jsx
1,557,736,683
se_59149744
stackoverflow
FRONTEND_DEVELOPMENT
Next.js &#39;Error occurred prerendering page &quot;/&quot;: Error: Minified React error #321;&#39; during production build
Next.js &#39;Error occurred prerendering page &quot;/&quot;: Error: Minified React error #321;&#39; during production build I am trying to run Next.js on firebase functions, and have successfully deployed before. However, after adding a webpack plugin (svgr) and making further customisations I am running into an error...
https://stackoverflow.com/questions/59149744/next-js-error-occurred-prerendering-page-error-minified-react-error-321
javascript, reactjs, next.js
1,575,343,437
se_79939316
stackoverflow
FRONTEND_DEVELOPMENT
Script warning in Nextjs
Script warning in Nextjs I need help, I keep getting this script warning in Next.js version 16. I am trying to do light mode and dark mode using next-themes ## Error Type Console Error ## Error Message Encountered a script tag while rendering React component. Scripts inside React components are never executed when re...
https://stackoverflow.com/questions/79939316/script-warning-in-nextjs
javascript, reactjs, next.js
1,778,498,793
se_43442826
stackoverflow
FRONTEND_DEVELOPMENT
React Component ESLint says Prefer Default Export
React Component ESLint says Prefer Default Export I keep getting this error from ESLint on my component. ESLint: says Prefer Default Export (import/prefer-default-export) Here's is how the component looks export class mycomponent extends React.Component { render() { //stuff here } } What is it asking f...
https://stackoverflow.com/questions/43442826/react-component-eslint-says-prefer-default-export
javascript, reactjs, eslint
1,492,381,767
se_51349037
stackoverflow
FRONTEND_DEVELOPMENT
onClick to call function from another JS file with react
onClick to call function from another JS file with react I have the following html code in my render react component: <button id="execute-request-button">Authorize</button> And I am trying to call this function from my external JS file $("#execute-request-button").click(function() { console.log("CLICK"); ...
https://stackoverflow.com/questions/51349037/onclick-to-call-function-from-another-js-file-with-react
javascript, reactjs
1,531,662,566
se_59487907
stackoverflow
FRONTEND_DEVELOPMENT
Include CSS from static folder in a nextjs react project
Include CSS from static folder in a nextjs react project I'm fetching data from API call in _document.js, and based on data putting condition to include CSS using Link tag. I was trying to include CSS file from public/static/ folder in _document.js or layout.js file, but not working.   layout.js file import React from...
https://stackoverflow.com/questions/59487907/include-css-from-static-folder-in-a-nextjs-react-project
reactjs, next.js
1,577,360,272
se_56300535
stackoverflow
FRONTEND_DEVELOPMENT
Why does Script Evaluation take so long?
Why does Script Evaluation take so long? I'm using gatsbyjs and tried to optimize my webpage (https://www.rün.run) as much as possible. Running PageSpeed gives me some decent results. What I'm wondering is, why Script Evaluation is taking so long? My js bundle size is only 257 kb (gzipped) large. It looks like the re...
https://stackoverflow.com/questions/56300535/why-does-script-evaluation-take-so-long
reactjs, gatsby, pagespeed, google-pagespeed
1,558,741,092
se_58446623
stackoverflow
FRONTEND_DEVELOPMENT
How can I highlight part of the text in material-ui TextField
How can I highlight part of the text in material-ui TextField I want to Highlight not Select part of the value in TextField component Something like this I tried having a <span> with a class in the value prop but that showed [object Object] instead. How can I achieve that?
https://stackoverflow.com/questions/58446623/how-can-i-highlight-part-of-the-text-in-material-ui-textfield
reactjs, material-ui
1,571,386,365
se_72337137
stackoverflow
FRONTEND_DEVELOPMENT
How to custom mask input in React Native without using libraries?
How to custom mask input in React Native without using libraries? I am completely new to react-native and have been trying to custom mask input. However, I am only getting numbers more than 10 even if I have specified the mask under TextInput. I am not sure what I am doing wrong. Your assistance will be greatly apprec...
https://stackoverflow.com/questions/72337137/how-to-custom-mask-input-in-react-native-without-using-libraries
reactjs, react-native, masking, input-mask, react-native-text-input-mask
1,653,218,750
se_79769337
stackoverflow
FRONTEND_DEVELOPMENT
RN 0.70.15 crushes on 16kb devices
RN 0.70.15 crushes on 16kb devices I’m trying to enable React Native 0.70.15 for a device with a 16KB page size. I need to upgrade the targetSdkVersion to 35 while using RN 0.70.15. Currently, the application works fine on devices with 4KB page size, but it crashes on the 16KB device. Has anyone encountered this issue...
https://stackoverflow.com/questions/79769337/rn-0-70-15-crushes-on-16kb-devices
android, reactjs, react-native, android-studio, react-native-hermes
1,758,273,464
se_59569657
stackoverflow
FRONTEND_DEVELOPMENT
SyntaxError: &quot;JSON.parse: unexpected end of data at line 1 column 1 of the JSON data&quot; on using Fetch in reactjs
SyntaxError: &quot;JSON.parse: unexpected end of data at line 1 column 1 of the JSON data&quot; on using Fetch in reactjs I am getting above mentioned error on trying to retrieve the JSON response from Fetch API. For some reason it works with 2 API's out of 4, but not for the rest 2. I do not see any difference on Fro...
https://stackoverflow.com/questions/59569657/syntaxerror-json-parse-unexpected-end-of-data-at-line-1-column-1-of-the-json
json, reactjs, post, fetch
1,577,997,202
se_56706667
stackoverflow
FRONTEND_DEVELOPMENT
How to mock a function returning a variable in Jest
How to mock a function returning a variable in Jest I want to test the canViewPage method in Jest. How do mock the userPages, which are the values from the function getUserPages? canViewPage(page){ const userPages = getUsersPages(); if(userPages.includes(page)){ return true; } return false; ...
https://stackoverflow.com/questions/56706667/how-to-mock-a-function-returning-a-variable-in-jest
reactjs, jestjs, enzyme
1,561,131,926
se_62089355
stackoverflow
FRONTEND_DEVELOPMENT
Append tailwind classes on React Data Table&#39;s column headers
Append tailwind classes on React Data Table&#39;s column headers I am planning to integrate my Tailwind CSS styles to a jbetancur React Data Table (see https://github.com/jbetancur/react-data-table-component) as a custom style. I would like to put the TW classes inside the customStyles attribute of the Datatable so t...
https://stackoverflow.com/questions/62089355/append-tailwind-classes-on-react-data-tables-column-headers
reactjs, styled-components, tailwind-css, react-data-table-component
1,590,765,781
se_70787147
stackoverflow
FRONTEND_DEVELOPMENT
React Data Table Lazy Loading or Pagination Loading
React Data Table Lazy Loading or Pagination Loading I am using react-data-table-component the data will be fetched from a API (which has 10k+ records). async function getAllData() { let nextUrl = "/url/"; let temp = []; let config = { headers: { Authorization: `token`, }, }; while (nextUrl !=...
https://stackoverflow.com/questions/70787147/react-data-table-lazy-loading-or-pagination-loading
javascript, reactjs, axios, react-data-table-component
1,642,685,586
se_75648436
stackoverflow
FRONTEND_DEVELOPMENT
Reusable components (Datatable) in React applications?
Reusable components (Datatable) in React applications? I am new in React and a little bit confused regarding to reusable components. I create my pages e.g. Employee in a pages folder and keep Material UI components e.g. Datatable in the components folders. Normally I would copy Datatable to my pages folder as EmployeD...
https://stackoverflow.com/questions/75648436/reusable-components-datatable-in-react-applications
javascript, reactjs, datatable, material-ui, frontend
1,678,090,358
se_33155087
stackoverflow
FRONTEND_DEVELOPMENT
React Native on Android failed to find Build Tools
React Native on Android failed to find Build Tools What causes following problem? Is my Android SDK Version not supported? Starting JS server... Building and installing the app on the device (cd android && gradlew.bat installDebug)... FAILURE: Buil...
https://stackoverflow.com/questions/33155087/react-native-on-android-failed-to-find-build-tools
javascript, android, reactjs, react-native
1,444,930,856
se_75944820
stackoverflow
FRONTEND_DEVELOPMENT
What&#39;s the correct type for error in useRouteError() from react-router-dom?
What&#39;s the correct type for error in useRouteError() from react-router-dom? I'm using the useRouteError() hook from react-router-dom in a React project to catch any errors that may occur during routing. However, I'm not sure what the correct type for the error object returned by this hook is. Right now, I have dec...
https://stackoverflow.com/questions/75944820/whats-the-correct-type-for-error-in-userouteerror-from-react-router-dom
javascript, reactjs, typescript, react-router, react-router-dom
1,680,738,963
se_53454527
stackoverflow
FRONTEND_DEVELOPMENT
Change font family Material-UI
Change font family Material-UI I am struggling to change the font family on Material-UI. I am trying to set it for the whole project using MuiTheme. How can I do this using a font from Google Fonts?
https://stackoverflow.com/questions/53454527/change-font-family-material-ui
reactjs, material-ui
1,543,024,239
se_62211156
stackoverflow
FRONTEND_DEVELOPMENT
SonarQube with Jest and react - Coverage on 0 New Lines to cover
SonarQube with Jest and react - Coverage on 0 New Lines to cover I have integrated Jest with SonarQube, SonarQube execution is getting failure throwing the below error, Error during parsing of generic test execution report '**/reports/test-reporter.xml'. Look at the SonarQube documentation to know the expected XML fo...
https://stackoverflow.com/questions/62211156/sonarqube-with-jest-and-react-coverage-on-0-new-lines-to-cover
reactjs, unit-testing, jestjs, sonarqube, sonarqube-scan
1,591,345,704
se_73437689
stackoverflow
FRONTEND_DEVELOPMENT
How can I filter a table with select options in React (component function)?
How can I filter a table with select options in React (component function)? I can't find how to filter a table in React with the Select (dropdown). I found an example on Google but they used Node but their code doesn't work on my React app. I prefer using components not class functions. This is my code. And I want to ...
https://stackoverflow.com/questions/73437689/how-can-i-filter-a-table-with-select-options-in-react-component-function
reactjs, filter, tableau-api, select-options
1,661,110,818
se_79927304
stackoverflow
FRONTEND_DEVELOPMENT
How to set dynamic meta tags in a React SPA so they are visible to search engine crawlers?
How to set dynamic meta tags in a React SPA so they are visible to search engine crawlers? I’m working on a React-based website where most pages are rendered dynamically. The issue I’m facing is that meta tags like title and description are not being properly indexed by Google for individual pages. Currently, I am usi...
https://stackoverflow.com/questions/79927304/how-to-set-dynamic-meta-tags-in-a-react-spa-so-they-are-visible-to-search-engine
javascript, reactjs, seo, html-meta
1,776,421,712
se_68676132
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind CSS IntelliSense not working on my VS code
Tailwind CSS IntelliSense not working on my VS code I recently start using tailwind CSS in my react app. Tailwind work when I use its class in elements. But Intellisense plugins doesn't suggest classes when I start typing. I see other people have same problem and saw the solution others explain but after all I can't f...
https://stackoverflow.com/questions/68676132/tailwind-css-intellisense-not-working-on-my-vs-code
reactjs, visual-studio-code, tailwind-css
1,628,224,042
se_78982511
stackoverflow
FRONTEND_DEVELOPMENT
Why Tailwind CSS IntelliSense isn’t working with a CDN link?
Why Tailwind CSS IntelliSense isn’t working with a CDN link? No suggestions were coming up in the HTML files. I tried re-installing the Tailwind CSS IntelliSense extension and tweaking some settings in the settings.json file related to the extension. However, the suggestions still didn't show up. I was expecting these...
https://stackoverflow.com/questions/78982511/why-tailwind-css-intellisense-isn-t-working-with-a-cdn-link
reactjs, visual-studio-code, tailwind-css, vscode-extensions
1,726,236,662
se_71288430
stackoverflow
FRONTEND_DEVELOPMENT
Unable to get Tailwind CSS or Intellisense to function
Unable to get Tailwind CSS or Intellisense to function I cannot get my react app to style divs using Tailwind, nor will the intellisense suggest any styling for me. import './App.css'; function App() { return ( <div className="text-red-400">Hello World</div> ); } export default App; tailwind.config.js module...
https://stackoverflow.com/questions/71288430/unable-to-get-tailwind-css-or-intellisense-to-function
css, reactjs, tailwind-css
1,645,995,746
se_58781322
stackoverflow
FRONTEND_DEVELOPMENT
React Styled Components - transform scale with props
React Styled Components - transform scale with props I am trying to style a navbar and I want a menu to transition open. I am trying to do this by passing a prop to the styled component and then setting the value of transform based on the prop, however I cannot see to figure out the syntax to use a prop in the styled ...
https://stackoverflow.com/questions/58781322/react-styled-components-transform-scale-with-props
reactjs, styled-components
1,573,317,403
se_78863209
stackoverflow
FRONTEND_DEVELOPMENT
Hero background images not displaying in React Slick slider
Hero background images not displaying in React Slick slider I am building a hero section using React and react-slick, where each slide has a full-screen background image with overlay text. The slider works correctly (transitions, autoplay, dots, etc.), but the background images are not rendering as expected, even thou...
https://stackoverflow.com/questions/78863209/hero-background-images-not-displaying-in-react-slick-slider
css, reactjs, slider
1,723,489,048
se_79480630
stackoverflow
FRONTEND_DEVELOPMENT
How do I properly integrate Tailwind CSS with PostCSS in a Vite + React project?
How do I properly integrate Tailwind CSS with PostCSS in a Vite + React project? I am trying to set up Tailwind CSS with PostCSS in a React + Vite project, but I get the following error when running the dev server: npm run dev > react-challenge@0.0.0 dev > vite failed to load config from E:\hp\Task\React-challenge\v...
https://stackoverflow.com/questions/79480630/how-do-i-properly-integrate-tailwind-css-with-postcss-in-a-vite-react-project
reactjs, tailwind-css, vite, postcss, tailwind-css-4
1,740,994,393
se_77006304
stackoverflow
FRONTEND_DEVELOPMENT
Convert PDF to image in typescript
Convert PDF to image in typescript I want to convert PDF pages to images and show them in <img/>. I've searched a lot and found many libraries but they didn't work in typescript. I've installed pdf-img-convert, pdfjs-dist, and 'react-pdf-to-image'. None of them worked. The first two show errors like the below message....
https://stackoverflow.com/questions/77006304/convert-pdf-to-image-in-typescript
reactjs, typescript, image, pdf
1,693,384,818
se_70616980
stackoverflow
FRONTEND_DEVELOPMENT
ERROR TypeError: undefined is not a function, js engine: hermes
ERROR TypeError: undefined is not a function, js engine: hermes <TouchableOpacity onPress={()=>props.navigation.openDrawer()} style={[styles.menuicon]}> <Icon name='menu' type='entypo' size={30} color={color.white}> </Icon> </TouchableOpacity>
https://stackoverflow.com/questions/70616980/error-typeerror-undefined-is-not-a-function-js-engine-hermes
reactjs, react-native
1,641,533,469
se_68209832
stackoverflow
FRONTEND_DEVELOPMENT
React Number Format Styling
React Number Format Styling Attempting to style a react-number-format component by adding a className does not work. How do I style this component? <NumberFormat thousandSeparator={true} prefix={'$'} decimalScale={2} fixedDecimalScale={true} id={props.id} name={props.id} value={props.value...
https://stackoverflow.com/questions/68209832/react-number-format-styling
css, reactjs
1,625,141,083
se_64399123
stackoverflow
FRONTEND_DEVELOPMENT
How to make clickable text in Reactjs?
How to make clickable text in Reactjs? I am having trouble figuring out how to make it so that the text is clickable and redirects to my Dashboard.js and About.js. Could someone help me out? I tried using Router but couldn't figure out how to get it to work. Thanks function App() { return ( /** <Router> ...
https://stackoverflow.com/questions/64399123/how-to-make-clickable-text-in-reactjs
reactjs
1,602,910,243
se_57223999
stackoverflow
FRONTEND_DEVELOPMENT
How to display image in reactjs from laravel storage
How to display image in reactjs from laravel storage I am storing images in storage/app/public directory of laravel project. Also I am saving names of images in the phpmyadmin database if it could be somehow helpful. Now I want to display those images in my jsx like: <div className={"dashboard-cards-cardsContainer"...
https://stackoverflow.com/questions/57223999/how-to-display-image-in-reactjs-from-laravel-storage
reactjs, laravel
1,564,158,988
se_73439127
stackoverflow
FRONTEND_DEVELOPMENT
Taillwind Installation Issues
Taillwind Installation Issues I'm trying to install Tailwind on my React project. I followed the instructions on https://tailwindcss.com/docs/guides/create-react-app and I'm using Windows10. I tried to apply the color but it's not working. My guess is that the codes below for index.css is wrong. I get this orange wavy...
https://stackoverflow.com/questions/73439127/taillwind-installation-issues
javascript, css, reactjs, tailwind-css, tailwind-css-3
1,661,127,467
se_70605862
stackoverflow
FRONTEND_DEVELOPMENT
How use @apply in other Scss files with tailwind
How use @apply in other Scss files with tailwind I'm using Tailwind and I try to use @apply on a scss file but vscode tells me "Unknown at rules @apply", I show you my App.css file and my css config, I read the tailwind doc about @Apply but I don't know, I must have missed something App.css : @tailwind base; @tailwind...
https://stackoverflow.com/questions/70605862/how-use-apply-in-other-scss-files-with-tailwind
reactjs, sass, tailwind-css, postcss, tailwind-css-3
1,641,465,541
se_76925138
stackoverflow
FRONTEND_DEVELOPMENT
Errors in React with @tailwind and @apply, tried all the obvious
Errors in React with @tailwind and @apply, tried all the obvious No matter what I do I cannot fix the errors: Unknown at rule @tailwind css(unkownAtRules) and: Unknown at rule @apply I am using React, I've installed everything necessary and tried all the suggestions from AI tools like copilot. All my config files look...
https://stackoverflow.com/questions/76925138/errors-in-react-with-tailwind-and-apply-tried-all-the-obvious
reactjs, tailwind-css
1,692,306,564
se_78896708
stackoverflow
FRONTEND_DEVELOPMENT
TailwindCSS configuration in Vite React shows error in index.css file
TailwindCSS configuration in Vite React shows error in index.css file I was starting my Vite React project. And as the next step I configured TailwindCSS as per Vite React documentation. Then I got this error message which targets the index.css file. The file only contained Tailwind CSS imports. How to solve this issu...
https://stackoverflow.com/questions/78896708/tailwindcss-configuration-in-vite-react-shows-error-in-index-css-file
reactjs, tailwind-css, vite
1,724,239,893
se_79128645
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind CSS VSCode Warning - Unknown at rule @tailwind error
Tailwind CSS VSCode Warning - Unknown at rule @tailwind error I'm trying to set up Tailwind CSS with Vite, but I'm getting "Unknown at rule @tailwind" errors in my index.css file. I've followed the official documentation and other solutions but can't get it working. UPDATE: thanks for comments, I can confirm Tailwind ...
https://stackoverflow.com/questions/79128645/tailwind-css-vscode-warning-unknown-at-rule-tailwind-error
reactjs, node.js, tailwind-css, vite, postcss
1,729,949,636
se_70597844
stackoverflow
FRONTEND_DEVELOPMENT
Unknown at rule @tailwind CSS in reactjs
Unknown at rule @tailwind CSS in reactjs cant able to resolve this error while compiling the code ..! In fact I've tried many other ways of implementation //Index.css @tailwind base; @tailwind components; @tailwind utilities;
https://stackoverflow.com/questions/70597844/unknown-at-rule-tailwind-css-in-reactjs
reactjs, visual-studio-code, tailwind-css, react-dom
1,641,407,168
se_79494762
stackoverflow
FRONTEND_DEVELOPMENT
Is there a way to bypass this error and make pnpm dlx work with TailwindCSS?
Is there a way to bypass this error and make pnpm dlx work with TailwindCSS? My questions are: Is there a way to bypass this error and make pnpm dlx work with TailwindCSS? If not, how can I manually locate the necessary binaries to run TailwindCSS? I'm using pnpm v10.5.2 and TailwindCSS v4.0 Any help would be apprecia...
https://stackoverflow.com/questions/79494762/is-there-a-way-to-bypass-this-error-and-make-pnpm-dlx-work-with-tailwindcss
reactjs, typescript, tailwind-css, vite, tailwind-css-4
1,741,454,604
se_79937573
stackoverflow
FRONTEND_DEVELOPMENT
How do I create an authentication feature with FastAPI and React?
How do I create an authentication feature with FastAPI and React? How do I create an authentication feature with FastAPI and React? What tools can I use for this? Is using FastAPI-Users sufficient? Or are there other similar libraries? I also found a note in the FastAPI-Users documentation that says the project is in ...
https://stackoverflow.com/questions/79937573/how-do-i-create-an-authentication-feature-with-fastapi-and-react
python, reactjs, authentication, jwt, fastapi
1,778,157,709
se_77942751
stackoverflow
FRONTEND_DEVELOPMENT
how to integrate langchain conversations with react chatbot
how to integrate langchain conversations with react chatbot I have a chatbot UI built with react that invokes a Python script and displays the script response using fast API. I use gpt 3.5 to format the question into a query in my Python script. I then send the query to an internal API and return the API response to t...
https://stackoverflow.com/questions/77942751/how-to-integrate-langchain-conversations-with-react-chatbot
python, reactjs, memory, fastapi, langchain
1,707,153,109
se_61671852
stackoverflow
FRONTEND_DEVELOPMENT
React-typescript: Object is of type &#39;unknown&#39;. TS2571
React-typescript: Object is of type &#39;unknown&#39;. TS2571 I am using React-TypeScript for my project. For state management, I am using React-redux, for function handling I am using redux-saga. For gluing the redux store and functions I am using React's new hooks useSelector and useDispatch. I successfully pull the...
https://stackoverflow.com/questions/61671852/react-typescript-object-is-of-type-unknown-ts2571
reactjs, typescript, react-hooks
1,588,910,674
se_71473316
stackoverflow
FRONTEND_DEVELOPMENT
NextJS: error in getServerSideProps function with axios
NextJS: error in getServerSideProps function with axios On the main page (index.js file) I use the getServerSideProps function export async function getServerSideProps(context) { axios.defaults.headers.common['Lang'] = context.locale try { const response = await axios.get('/index?limit=8') retu...
https://stackoverflow.com/questions/71473316/nextjs-error-in-getserversideprops-function-with-axios
reactjs, axios, next.js
1,647,286,651
se_63595384
stackoverflow
FRONTEND_DEVELOPMENT
Initial page loading time is too slow compared to subsequent page loads
Initial page loading time is too slow compared to subsequent page loads I have build a App using nextjs and deployed it on server, I have observed that initial page loading take 4 sec to load and all subsequent page loads takes fews ms to load , if next generates the static html page and serves it then why does it tak...
https://stackoverflow.com/questions/63595384/initial-page-loading-time-is-too-slow-compared-to-subsequent-page-loads
reactjs, next.js, server-side-rendering
1,598,436,692
se_53266814
stackoverflow
FRONTEND_DEVELOPMENT
Next.js pass NODE_ENV to client
Next.js pass NODE_ENV to client I'm building a React SSR App, using Next.js. I want to be able to access the NODE_ENV on the client side, as this will tell my app which API endpoints to use. I'm struggling to find a decent approach for this. I'd like to define the NODE_ENV as a window variable when I first render the ...
https://stackoverflow.com/questions/53266814/next-js-pass-node-env-to-client
javascript, node.js, reactjs, environment-variables, next.js
1,542,041,979
se_75124039
stackoverflow
FRONTEND_DEVELOPMENT
how to remove tailwind prefights for specific pages
how to remove tailwind prefights for specific pages There is an option in tailwind.config.cjs to turn off preflights. But i don't want to turn them off for the whole project. i need them to be enabled for some specific pages. Is there a way to do that. Turn off preflights: // tailwind.config.cjs ... corePlugins: { p...
https://stackoverflow.com/questions/75124039/how-to-remove-tailwind-prefights-for-specific-pages
reactjs, tailwind-css
1,673,774,236
se_58356056
stackoverflow
FRONTEND_DEVELOPMENT
common storybook for angular and react
common storybook for angular and react There are react and angular projets in my team and I would like to integrate storybook in both of them. I would like to know if there is a way to build a common storybook that could be imported in both react and angular projects ? the only thing that comes to my mind would be the...
https://stackoverflow.com/questions/58356056/common-storybook-for-angular-and-react
angular, reactjs, storybook
1,570,896,942
se_71456100
stackoverflow
FRONTEND_DEVELOPMENT
typeerror: cannot destructure property &#39;user&#39; of &#39;(0 , react__webpack_imported_module_0__.usecontext)(...)&#39; as it is undefined
typeerror: cannot destructure property &#39;user&#39; of &#39;(0 , react__webpack_imported_module_0__.usecontext)(...)&#39; as it is undefined I am working on this project and suddenly this error appeared in chrome's console.log typeerror: cannot destructure property 'user' of '(0 , react__webpack_imported_module_0__....
https://stackoverflow.com/questions/71456100/typeerror-cannot-destructure-property-user-of-0-react-webpack-imported-m
reactjs, react-hooks
1,647,169,447
se_79651683
stackoverflow
FRONTEND_DEVELOPMENT
npx tailwindcss init -p throws &quot;could not determine executable to run&quot; error in Vite + React setup on Windows
npx tailwindcss init -p throws &quot;could not determine executable to run&quot; error in Vite + React setup on Windows I am setting up Tailwind with React using Vite on windows using the followin commands: Init project npm create vite@latest ./ -- --template react Install Tailwind, PostCSS, Autoprefixer npm install ...
https://stackoverflow.com/questions/79651683/npx-tailwindcss-init-p-throws-could-not-determine-executable-to-run-error-in
reactjs, npm, tailwind-css, vite
1,748,972,410
se_79551269
stackoverflow
FRONTEND_DEVELOPMENT
TailwindCSS v4 with Sass not working in Webpack
TailwindCSS v4 with Sass not working in Webpack Has anyone been able to successfully run TailwindCSS 4 with Sass in Webpack 5 & React app? I am having some configuration issues where I don't get any console errors but CSS processing seems to be conflicting on my app to the point where it is messing up with routing. Ev...
https://stackoverflow.com/questions/79551269/tailwindcss-v4-with-sass-not-working-in-webpack
reactjs, sass, tailwind-css, webpack-5, tailwind-css-4
1,743,616,754
se_79386415
stackoverflow
FRONTEND_DEVELOPMENT
Error: &#39;could not determine executable to run&#39; when initializing Tailwind CSS with shadcn/ui
Error: &#39;could not determine executable to run&#39; when initializing Tailwind CSS with shadcn/ui I'm working on a React project and using shadcn/ui. I tried to install and set up Tailwind CSS using the following commands: Installed Tailwind CSS, PostCSS, and Autoprefixer: npm install -D tailwindcss postcss autop...
https://stackoverflow.com/questions/79386415/error-could-not-determine-executable-to-run-when-initializing-tailwind-css-wi
reactjs, tailwind-css, shadcnui, tailwind-css-4
1,737,794,164
se_79585896
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind CSS and PostCSS not compiling in React + Vite + Typescript Stackblitz web application
Tailwind CSS and PostCSS not compiling in React + Vite + Typescript Stackblitz web application I am building a web application in Stackblitz using React + Vite with Typescript, and after finishing all of the main functionality I am adding some styling. This is my first time using Tailwind CSS, and when attempting to a...
https://stackoverflow.com/questions/79585896/tailwind-css-and-postcss-not-compiling-in-react-vite-typescript-stackblitz-w
reactjs, typescript, tailwind-css, vite, stackblitz
1,745,306,700
se_79440161
stackoverflow
FRONTEND_DEVELOPMENT
Error when adding Tailwind CSS to an existing React - vite project
Error when adding Tailwind CSS to an existing React - vite project I'm working on a React project based on Vite. I want to add Tailwind CSS, and after following the steps below, I'm encountering an error. 1. npm install -D tailwindcss postcss autoprefixer Initialize Tailwind CSS 2. npx tailwindcss init -p The first ...
https://stackoverflow.com/questions/79440161/error-when-adding-tailwind-css-to-an-existing-react-vite-project
reactjs, tailwind-css, vite
1,739,554,788
se_78347736
stackoverflow
FRONTEND_DEVELOPMENT
A form field element should have an id or name attribute
A form field element should have an id or name attribute The following is my code. <TextInput label="Password" placeholder="Enter your password" password={true} //password passed to enable view password option value={password} handelChange={(e) => setPassword(e.target...
https://stackoverflow.com/questions/78347736/a-form-field-element-should-have-an-id-or-name-attribute
reactjs, input, error-handling, label, textformfield
1,713,446,038
se_45624780
stackoverflow
FRONTEND_DEVELOPMENT
e.target.value on an input field ReactJs, how does it work?
e.target.value on an input field ReactJs, how does it work? https://facebook.github.io/react/docs/thinking-in-react.html I'm at the end of this tutorial and I'm just not understanding how e.target.value works. Walk through the end of this tutorial and see the sample code that there is please. I'm newbie both to React...
https://stackoverflow.com/questions/45624780/e-target-value-on-an-input-field-reactjs-how-does-it-work
javascript, reactjs
1,502,407,171
se_68239168
stackoverflow
FRONTEND_DEVELOPMENT
Error: supabaseUrl is required (supabase) postgresql
Error: supabaseUrl is required (supabase) postgresql i'm using supabase postgresql online, in which important create a .env file where is my online DMBS's URL and anon key is saved and a "supabase client" file also create to access DBMS and tables and the import "supabase client" in the require file. I have done all t...
https://stackoverflow.com/questions/68239168/error-supabaseurl-is-required-supabase-postgresql
reactjs, database, postgresql, error-handling, supabase
1,625,338,653
se_69159701
stackoverflow
FRONTEND_DEVELOPMENT
I need show &quot;rtsp//:&quot; live streaming on react
I need show &quot;rtsp//:&quot; live streaming on react I am studying face detection system, but I have a problem, and I need help. I've read and tried many pictures from the internet, but I still can't. I want to display "rtsp //:" live streaming on a response by nodejs. My URL: rtsp://username:password@IP:554/cam/re...
https://stackoverflow.com/questions/69159701/i-need-show-rtsp-live-streaming-on-react
node.js, reactjs, socket.io, rtsp, rtsp-client
1,631,522,476
se_76647141
stackoverflow
FRONTEND_DEVELOPMENT
React Hook Form defaultValues v/s values
React Hook Form defaultValues v/s values When using React Hook Form, while I understand that the "defaultValues" is used to set the form field values on initial form load. However, let's say there is a dynamic form with dependent fields e.g. if Dropdown Field 1 is set to "ABC", then Field 2 should be set to "ABC 1 Upd...
https://stackoverflow.com/questions/76647141/react-hook-form-defaultvalues-v-s-values
javascript, reactjs, formik, react-hook-form
1,688,900,653
se_55135981
stackoverflow
FRONTEND_DEVELOPMENT
How do I integrate uploading Files(pdf, doc etc) via Quill JS Rich Text Editor?
How do I integrate uploading Files(pdf, doc etc) via Quill JS Rich Text Editor? By default, Quill supports the embedding format like Image, Video and Formula. How can I embed pdf or doc file by Quill Editor?
https://stackoverflow.com/questions/55135981/how-do-i-integrate-uploading-filespdf-doc-etc-via-quill-js-rich-text-editor
javascript, reactjs, rich-text-editor, quill
1,552,459,883
se_79936247
stackoverflow
FRONTEND_DEVELOPMENT
How to preserve image filename in Quill JS when using base64 inline images?
How to preserve image filename in Quill JS when using base64 inline images? I am using Quill JS (React) to compose emails. When I upload an image, Quill converts it into a base64 string inside the <img src='base64datas....'> tag. However, I need the original filename on my backend (Python) to set the attachment name c...
https://stackoverflow.com/questions/79936247/how-to-preserve-image-filename-in-quill-js-when-using-base64-inline-images
reactjs, file-upload, quill, react-quill
1,777,962,668
se_79933131
stackoverflow
FRONTEND_DEVELOPMENT
Need Suggestion for best MERN stack online course?
Need Suggestion for best MERN stack online course? Can you recommend me a MERN stack course according to the current industry demand and the below listed constraints? The constraints are: - Budget is around 25k INR. Course duration should be around 3 months. And it should be trusted by you. Course should be around...
https://stackoverflow.com/questions/79933131/need-suggestion-for-best-mern-stack-online-course
javascript, reactjs, node.js, express, mern
1,777,386,702
se_79294547
stackoverflow
FRONTEND_DEVELOPMENT
Creating react project fails (following tailwind guide)
Creating react project fails (following tailwind guide) I am curently trying to set-up a react project with Tailwind for a school assignment. Unfortunately, due to something going wrong behind the scenes, I get a list of errors after executing the command. This results in the project being unusable right from the star...
https://stackoverflow.com/questions/79294547/creating-react-project-fails-following-tailwind-guide
reactjs, node.js, npm, tailwind-css
1,734,616,925
se_71035275
stackoverflow
FRONTEND_DEVELOPMENT
Get current users data from Firestore on ReactJS using uid as a link between the user auth and Firestore. Get this error: Too many re-renders
Get current users data from Firestore on ReactJS using uid as a link between the user auth and Firestore. Get this error: Too many re-renders I am trying to get user data from Firestore using UID to link the Firestore data and the user auth. I have tried this but keep getting a blank screen with too many re-renders er...
https://stackoverflow.com/questions/71035275/get-current-users-data-from-firestore-on-reactjs-using-uid-as-a-link-between-the
javascript, reactjs, firebase, react-native, google-cloud-firestore
1,644,329,211
se_75862574
stackoverflow
FRONTEND_DEVELOPMENT
Can React be used without JSX?
Can React be used without JSX? jsx is used tactically in React and helps developers understand React components by viewing the code in more detail. Now the question is, is it possible to use other methods such as using simple functions or using other libraries such as preact or inferno in the react library? With the s...
https://stackoverflow.com/questions/75862574/can-react-be-used-without-jsx
reactjs, jsx, preact, infernojs
1,679,980,900
se_57771064
stackoverflow
FRONTEND_DEVELOPMENT
Ant design Form validation is not working and not updating input values when component is from a state that is passed from a function
Ant design Form validation is not working and not updating input values when component is from a state that is passed from a function Can not validate the form item when sent from a function using state. Also the 'Select' values are not updating when changing options. I am using components from Ant design. If I use '...
https://stackoverflow.com/questions/57771064/ant-design-form-validation-is-not-working-and-not-updating-input-values-when-com
javascript, reactjs, antd
1,567,511,063
se_64687849
stackoverflow
FRONTEND_DEVELOPMENT
&quot;export &#39;createStore&#39; was not found in &#39;redux&#39;
&quot;export &#39;createStore&#39; was not found in &#39;redux&#39; WARNING in ./node_modules/@redux-saga/core/dist/redux-saga-core.esm.js 1343:21-28 "export 'compose' was not found in 'redux' @ ./node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js @ ./src/store.js @ ./src/App.js @ ./src/index.js WARNIN...
https://stackoverflow.com/questions/64687849/export-createstore-was-not-found-in-redux
reactjs, redux, react-redux, redux-saga
1,604,524,569