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_74286839
stackoverflow
FRONTEND_DEVELOPMENT
error npm ERR! code FETCH_ERROR npm ERR! errno FETCH_ERROR npm ERR! invalid json response body when installing reactjs
error npm ERR! code FETCH_ERROR npm ERR! errno FETCH_ERROR npm ERR! invalid json response body when installing reactjs I'm trying to learn ReactJS, but the ReactJS docs say *install with * npx create-react-app {project_name} it also required Node.js & npm. I have installed Node.js latest version & npm. But when I run...
https://stackoverflow.com/questions/74286839/error-npm-err-code-fetch-error-npm-err-errno-fetch-error-npm-err-invalid-json
node.js, reactjs, npm
1,667,380,628
se_71035309
stackoverflow
FRONTEND_DEVELOPMENT
file upload using Axios in React
file upload using Axios in React I am uploading a file in React using Axios. When I am doing alert(values.attachedFile[0]);, it displays: but when I am sending values.attachedFile[0] in an Axios post request, an empty object is being sent. const { result } = await axios.post(app.resourceServerUrl + '/file/upload', { ...
https://stackoverflow.com/questions/71035309/file-upload-using-axios-in-react
javascript, reactjs, axios, nestjs
1,644,329,340
se_79934899
stackoverflow
FRONTEND_DEVELOPMENT
Creating a Menu with React.js
Creating a Menu with React.js I need to create a menu with three links using React.js, and they all need to be on one line. So far, I have the links created, but they are stacking up, one on top of the other. I am trying to get them to be next to each other, and all on the same line. Can someone please suggest how I c...
https://stackoverflow.com/questions/79934899/creating-a-menu-with-react-js
javascript, html, css, reactjs
1,777,691,413
se_56017457
stackoverflow
FRONTEND_DEVELOPMENT
React Select Multi Select Check box -With Select All
React Select Multi Select Check box -With Select All I am looking for some React component which has feature of multi select check box along with select All option, I could see few components but it does not have select all built in Feature. Any pointers?
https://stackoverflow.com/questions/56017457/react-select-multi-select-check-box-with-select-all
reactjs, react-select
1,557,213,603
se_48413299
stackoverflow
FRONTEND_DEVELOPMENT
Arrow function should not return assignment?
Arrow function should not return assignment? My code is working correctly in the app however, my eslint isn't liking it and is saying I should not return assignment. What is wrong with this? <div ref={(el) => this.myCustomEl = el} />
https://stackoverflow.com/questions/48413299/arrow-function-should-not-return-assignment
javascript, reactjs, eslint
1,516,755,609
se_64884546
stackoverflow
FRONTEND_DEVELOPMENT
Error: JSON value of type NSstring cannot be converted of a YGValue. Did you forget the % or pt suffix
Error: JSON value of type NSstring cannot be converted of a YGValue. Did you forget the % or pt suffix Why can't i use: global.App_BottomTabBarHeight below to set the height in React Navigation createBottomTabNavigator? Where global.App_BottomTabBarHeight = '8%'. This is defined in another class. I'm developing an iOS...
https://stackoverflow.com/questions/64884546/error-json-value-of-type-nsstring-cannot-be-converted-of-a-ygvalue-did-you-for
javascript, reactjs, react-native, react-navigation
1,605,653,575
se_59259893
stackoverflow
FRONTEND_DEVELOPMENT
&#39;outlined&#39; not working in Material UI Select
&#39;outlined&#39; not working in Material UI Select I am implementing Material UI `Select' for which values are coming from backend. Below is my code <FormControl variant="outlined" className={classes.formControl}> <InputLabel ref={inputLabel} id="demo-simple-select-outlined-label" htmlFor="outlined-Name"> ...
https://stackoverflow.com/questions/59259893/outlined-not-working-in-material-ui-select
css, reactjs, select, drop-down-menu, material-design
1,575,949,406
se_58951779
stackoverflow
FRONTEND_DEVELOPMENT
React Native searchbar with react-navigation
React Native searchbar with react-navigation I would like to add a searchbar in my header. I am using react-navigation, and want to create an effect like in the below 2 pictures. When you press the search icon, the hamburger icon becomes a arrow-back icon, the header title becomes a search field. I have tried to accom...
https://stackoverflow.com/questions/58951779/react-native-searchbar-with-react-navigation
reactjs, react-native, header, searchbar
1,574,244,813
se_79934796
stackoverflow
FRONTEND_DEVELOPMENT
What is best, React or Flutter?
What is best, React or Flutter? What is best, keeping an app written in React or change the app to Flutter?
https://stackoverflow.com/questions/79934796/what-is-best-react-or-flutter
reactjs, flutter
1,777,660,558
se_68358190
stackoverflow
FRONTEND_DEVELOPMENT
MSAL setActiveAccount from within function
MSAL setActiveAccount from within function So I'm in the process of setting up MSAL with AAD for my react project. As it is, everything is working as expected, I can login, refresh the page (to get the latest active token) and logout. However, as I was trying to refactor some of my code to make it more readable, I ran...
https://stackoverflow.com/questions/68358190/msal-setactiveaccount-from-within-function
reactjs, azure-active-directory, azure-ad-msal
1,626,161,252
se_78979789
stackoverflow
FRONTEND_DEVELOPMENT
Tailwind error when installing shadcn in Vite React App
Tailwind error when installing shadcn in Vite React App I was setting up shadcn in a React App using Vite by using the following command: npx shadcn@latest init and I received an error (please see error below). I had installed tailwind and did setup as mentioned on official website. npm install -D tailwindcss postcss ...
https://stackoverflow.com/questions/78979789/tailwind-error-when-installing-shadcn-in-vite-react-app
reactjs, npm, tailwind-css, vite, shadcnui
1,726,171,173
se_59196585
stackoverflow
FRONTEND_DEVELOPMENT
Material UI Select - Change Select size
Material UI Select - Change Select size whilst using the selects from Material UI, I'm struggling to get them working properly using a height and width with 'vh' and 'vw' appropriately and a text-size using 'vh'. I end up having a proper size for the boxes, but the label text is not centered anymore due to apparently ...
https://stackoverflow.com/questions/59196585/material-ui-select-change-select-size
javascript, reactjs, material-ui
1,575,553,589
se_58957292
stackoverflow
FRONTEND_DEVELOPMENT
onchange in a form using formik the value of the field is not updated
onchange in a form using formik the value of the field is not updated I'm new to react, and I'm trying to apply validations to a form. For some reason when adding the property: onChange={onChange} I want to send the values to the parent component. That's why I'm using the onchange. Nothing I write is shown in my...
https://stackoverflow.com/questions/58957292/onchange-in-a-form-using-formik-the-value-of-the-field-is-not-updated
reactjs, formik
1,574,261,866
se_26048771
stackoverflow
FRONTEND_DEVELOPMENT
Render React Components from PHP
Render React Components from PHP I'm using ReactJS to power a simple filterable item list and it works quite well for my need. The problem is that I need to render the markup on the server for SEO reasons, but when I call React.renderComponent() it replace the existing markup with the one generated by React. Searchi...
https://stackoverflow.com/questions/26048771/render-react-components-from-php
javascript, php, client-side, reactjs
1,411,682,085
se_47071716
stackoverflow
FRONTEND_DEVELOPMENT
How to change the background color of a screen?
How to change the background color of a screen? I navigate to a view with stack navigator. The new screen has a different background color #E9E9EF, I do not know where it comes from. I figured out that this color is set in react-navigation/lib/views/CardStack/Card.js. I tried to change the view background color but it...
https://stackoverflow.com/questions/47071716/how-to-change-the-background-color-of-a-screen
reactjs, react-native
1,509,614,800
se_57956476
stackoverflow
FRONTEND_DEVELOPMENT
How to set up an endpoint for Health check on Next.js?
How to set up an endpoint for Health check on Next.js? I have an application deployed on Kubernetes (Google cloud). For the deployment to function, it needs to return a 200 status response to "/healthz" and "/". I have this set up on my Express server as a route returning a response like so: app.use('/healthz', ((_re...
https://stackoverflow.com/questions/57956476/how-to-set-up-an-endpoint-for-health-check-on-next-js
reactjs, kubernetes, google-cloud-platform, next.js
1,568,635,374
se_57818550
stackoverflow
FRONTEND_DEVELOPMENT
GraphQL Error : Field is not defined in the input type
GraphQL Error : Field is not defined in the input type I have an error in my application. I use Next.js / ApolloClient / GraphQL and Prisma. The error concerns the GraphQL schema and it's use in Mutation: Error : Reason: 'end_date' Field 'end_date' is not defined in the input type ArticleCreateInput I tried to copy...
https://stackoverflow.com/questions/57818550/graphql-error-field-is-not-defined-in-the-input-type
reactjs, graphql, field, apollo, prisma
1,567,759,154
se_47014990
stackoverflow
FRONTEND_DEVELOPMENT
how to set an empty initial value for react-date-picker?
how to set an empty initial value for react-date-picker? I have a redux form which uses react-date-picker as it's date component, now on opening the form in edit mode, there in some cases the date field doesn't have a value or it has a blank (" ") value. Now in this case if my react-date-picker component doesn't find ...
https://stackoverflow.com/questions/47014990/how-to-set-an-empty-initial-value-for-react-date-picker
reactjs, redux, react-redux, react-datepicker
1,509,365,669
se_46368237
stackoverflow
FRONTEND_DEVELOPMENT
using array.findIndex() on state in React
using array.findIndex() on state in React So I am new to react and I need a bit of help. I am working on a form that takes in several values and am currently testing a function assignAtribute, which takes in the name of the input element and uses it to update the state of an array called currentRecipe (see below). a...
https://stackoverflow.com/questions/46368237/using-array-findindex-on-state-in-react
javascript, arrays, reactjs, filtering, state
1,506,094,133
se_74303578
stackoverflow
FRONTEND_DEVELOPMENT
React hook form how can multiple forms register to multiple form contexts?
React hook form how can multiple forms register to multiple form contexts? I'm trying to build a sort of multi step form with React Hook Form, but it is not the classic multi step form. In my case I need to persist in the database on every submit. To me that was an indication that I should split the form into small fo...
https://stackoverflow.com/questions/74303578/react-hook-form-how-can-multiple-forms-register-to-multiple-form-contexts
reactjs, react-hooks, react-context, react-hook-form
1,667,480,865
se_49508433
stackoverflow
FRONTEND_DEVELOPMENT
Spinning wheel in React.js
Spinning wheel in React.js I'm creating a lottery app with React.js. There is a spinning wheel in SVG format. You can spin a wheel and it smoothly stops at a given position (my app makes it random position). I made the wheel a React.js component that you use like this: <Wheel items={items} fullSpins={5} angle={0} ...
https://stackoverflow.com/questions/49508433/spinning-wheel-in-react-js
javascript, css, reactjs
1,522,140,885
se_79933354
stackoverflow
FRONTEND_DEVELOPMENT
How to structure a React project for stock management?
How to structure a React project for stock management? I'm building a stock management project using React (with Redux-Toolkit). My project includes: Products Product variants Categories Stock management (add / remove / update quantity) Forms (create/edit) API backend (Laravel) Right now my structure is confusing an...
https://stackoverflow.com/questions/79933354/how-to-structure-a-react-project-for-stock-management
javascript, reactjs
1,777,418,568
se_56718942
stackoverflow
FRONTEND_DEVELOPMENT
Uncaught ReferenceError: process is not defined - React-Rails
Uncaught ReferenceError: process is not defined - React-Rails Components aren't rendering because of the Uncaught ReferenceError error. The error is thrown in one of the React API files (see the code in question below). I'm using the react-rails gem and am trying to render a blank component called 'Test'. The file fr...
https://stackoverflow.com/questions/56718942/uncaught-referenceerror-process-is-not-defined-react-rails
reactjs, webpack, react-rails
1,561,235,208
se_78422092
stackoverflow
FRONTEND_DEVELOPMENT
why does Invalid value for prop action on &lt;form&gt; tag
why does Invalid value for prop action on &lt;form&gt; tag // handle form submitting from client side export default function Search() { function search(formData) { const query = formData.get("query"); alert(`You searched for '${query}'`); } return ( <form action={search}> ...
https://stackoverflow.com/questions/78422092/why-does-invalid-value-for-prop-action-on-form-tag
javascript, reactjs
1,714,692,433
se_76468875
stackoverflow
FRONTEND_DEVELOPMENT
Unrecognized Feature: web-share (Youtube, Chrome)
Unrecognized Feature: web-share (Youtube, Chrome) I have a website that uses embedded videos (via youtube's share -> embed) and when I open DevTools in Chrome, I see an error that says: Unrecognized feature: 'web-share'. (anonymous)@react-dom.production….js?ver=16.14.0:184 when I click on the react-dom.production.... ...
https://stackoverflow.com/questions/76468875/unrecognized-feature-web-share-youtube-chrome
reactjs, google-chrome, youtube, embed, devtools
1,686,692,029
se_73519404
stackoverflow
FRONTEND_DEVELOPMENT
getting undefined is not iterable (cannot read property Symbol(Symbol.iterator))
getting undefined is not iterable (cannot read property Symbol(Symbol.iterator)) Learning React by coding, here i got this error (Uncaught TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) ), dont know where is the problem, any suggestion ? simply useEffect activates setFilteredData w...
https://stackoverflow.com/questions/73519404/getting-undefined-is-not-iterable-cannot-read-property-symbolsymbol-iterator
javascript, html, reactjs, react-hooks, use-state
1,661,695,959
se_64453045
stackoverflow
FRONTEND_DEVELOPMENT
how to use .env file in a react js with typescript project?
how to use .env file in a react js with typescript project? I have a react js project , but with typescript. I understand we can create .env file and have some configuration defined as such, .env file REACT_APP_SOME_CONFIGURATION = "some value" and use it in the code , without importing anything , like below const c...
https://stackoverflow.com/questions/64453045/how-to-use-env-file-in-a-react-js-with-typescript-project
node.js, reactjs, typescript
1,603,226,554
se_72770683
stackoverflow
FRONTEND_DEVELOPMENT
Add description to table cell
Add description to table cell I have a table that has three columns. In one of these columns (in the photo it is in the middle), I would like to add a small description below (for example, the operation system of the device). I tried several options with Grid, but nothing worked for me. Perhaps you can help me? For a ...
https://stackoverflow.com/questions/72770683/add-description-to-table-cell
javascript, reactjs, material-ui
1,656,326,166
se_70362887
stackoverflow
FRONTEND_DEVELOPMENT
Enable hmr overlay with vite react and ts
Enable hmr overlay with vite react and ts I have a React project with set up with vite and ts. Without ts I do have the overlay errors as we used to have errors with a basic react project. import { defineConfig } from 'vite'; import reactRefresh from '@vitejs/plugin-react-refresh'; const path = require('path'); // h...
https://stackoverflow.com/questions/70362887/enable-hmr-overlay-with-vite-react-and-ts
reactjs, overlay, vite
1,639,567,701
se_75320028
stackoverflow
FRONTEND_DEVELOPMENT
How can I make the .git folder not disappear in the build folder after npm run build?
How can I make the .git folder not disappear in the build folder after npm run build? I have a React app and I want to make the build folder its own Git repository, but every time I run npm run build, the .git folder inside the regenerated /build directory disappears. How can I resolve this?
https://stackoverflow.com/questions/75320028/how-can-i-make-the-git-folder-not-disappear-in-the-build-folder-after-npm-run-b
reactjs, git
1,675,323,982
se_76686456
stackoverflow
FRONTEND_DEVELOPMENT
Scrolling text automatically for a typing testing app
Scrolling text automatically for a typing testing app Im new to reactjs, and there are so many things that I have to learn. I'm trying to make an application look like Monkeytype but using reactjs only (not using redux either). I found that in MonkeyType, when I typed nearly to the bottom of the text, there was a nice...
https://stackoverflow.com/questions/76686456/scrolling-text-automatically-for-a-typing-testing-app
javascript, reactjs
1,689,327,151
se_73219847
stackoverflow
FRONTEND_DEVELOPMENT
How to run Pyscript in React?
How to run Pyscript in React? I'm trying to use PyScript in NextJS, but I'm seeing several errors. I have no clue how to make a React component of PyScript. Has anyone successfully used PyScript in ReactJS? Thanks, const Home: NextPage = () => { return ( <div> <Head> <link rel="stylesheet" href="ht...
https://stackoverflow.com/questions/73219847/how-to-run-pyscript-in-react
python, reactjs, pyscript
1,659,521,160
se_54085374
stackoverflow
FRONTEND_DEVELOPMENT
Does React have something like Vue&#39;s keep-alive element?
Does React have something like Vue&#39;s keep-alive element? Vue keep-alive element will remember page state when back history page, hope React has something like that.
https://stackoverflow.com/questions/54085374/does-react-have-something-like-vues-keep-alive-element
reactjs, vue.js
1,546,922,972
se_62760280
stackoverflow
FRONTEND_DEVELOPMENT
How to deal with nested useEffect?
How to deal with nested useEffect? Recently started using Hooks and, as cook as they are, they are giving me a bit of a headache. I have a custom useFetch() hook that deals with fetching data from the API. I also have a component where I need to use useFetch a few times and the results must be passed from one to anoth...
https://stackoverflow.com/questions/62760280/how-to-deal-with-nested-useeffect
javascript, reactjs, react-hooks, frontend
1,594,052,446
se_76590882
stackoverflow
FRONTEND_DEVELOPMENT
How to change TSConfig lib for specific file or don&#39;t make lib types global
How to change TSConfig lib for specific file or don&#39;t make lib types global I'm using react-native and react-native-web, and have some code written using html DOM elements instead of react native components (<div/> instead of <View/>). To properly type them I added 'DOM' to tsconfig.compilerOptions.lib: "compilerO...
https://stackoverflow.com/questions/76590882/how-to-change-tsconfig-lib-for-specific-file-or-dont-make-lib-types-global
reactjs, typescript, dom, tsconfig, react-native-web
1,688,143,815
se_70838220
stackoverflow
FRONTEND_DEVELOPMENT
Correct use of ReactToPrint?
Correct use of ReactToPrint? The problem is that the button that is supposed to give the option to print is not working anymore. the error in the console says: To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://gith...
https://stackoverflow.com/questions/70838220/correct-use-of-reacttoprint
reactjs, redux, react-to-print
1,643,046,437
se_49764771
stackoverflow
FRONTEND_DEVELOPMENT
How import and export components (functions) in ReactJS?
How import and export components (functions) in ReactJS? I'm trying to export and import components in my project, but i don't getting. My code of the my main App: import React, { Component } from 'react'; import './App.css'; import Search from './Search'; export default class App extends Component { con...
https://stackoverflow.com/questions/49764771/how-import-and-export-components-functions-in-reactjs
reactjs
1,523,407,456
se_56074956
stackoverflow
FRONTEND_DEVELOPMENT
In nextjs I want to control the output of the log
In nextjs I want to control the output of the log I want to control the output of the log in the development environment and production environment I can't control the log output in the react component, and I want to control the output in different development environments. There is code compression in next.js. I wa...
https://stackoverflow.com/questions/56074956/in-nextjs-i-want-to-control-the-output-of-the-log
reactjs, next.js
1,557,481,572
se_72228723
stackoverflow
FRONTEND_DEVELOPMENT
How to set maximum line of text using flex css react
How to set maximum line of text using flex css react I'm having a screen like this But it look actually not so good if the title or author is so long, so i wonder how can i set maximum of text line to fixed number, example 3, example: This very long long long This very long long long This very long long long Will...
https://stackoverflow.com/questions/72228723/how-to-set-maximum-line-of-text-using-flex-css-react
javascript, html, css, reactjs
1,652,440,767
se_79932994
stackoverflow
FRONTEND_DEVELOPMENT
open WeChat app directly from ReactJS app for seamless integration
open WeChat app directly from ReactJS app for seamless integration i have CRM dashboard made with ReactJS, client asks for integration with WeChat so he is able to send invoice data to WeChat as a .xlsx file, doing research i read that we can't open WeChat directly from ReactJS app, but user must be running inside WeC...
https://stackoverflow.com/questions/79932994/open-wechat-app-directly-from-reactjs-app-for-seamless-integration
reactjs, wechat
1,777,370,927
se_76898238
stackoverflow
FRONTEND_DEVELOPMENT
How could I get device id in react js?
How could I get device id in react js? As I tryied react-native-device-info in my mobile app but now I want to get the device ID in my web app. How could I get the device ID in React js for my web app. Is there any NPM or any other alternative? Thanks In Advance Did not got any node package related to this.
https://stackoverflow.com/questions/76898238/how-could-i-get-device-id-in-react-js
javascript, node.js, reactjs, npm, package
1,692,009,859
se_78628129
stackoverflow
FRONTEND_DEVELOPMENT
React: How to have VSCode auto-complete with single-quotes in most places, but double-quotes in JSX tags?
React: How to have VSCode auto-complete with single-quotes in most places, but double-quotes in JSX tags? For my React TypeScript project, the ESLint specifies using single-quotes in general, but double-quotes in JSX/TSX tags. Here's a mini version of the ".eslintrc.json" file: { "extends": "next/core-web-vitals",...
https://stackoverflow.com/questions/78628129/react-how-to-have-vscode-auto-complete-with-single-quotes-in-most-places-but-d
reactjs, visual-studio-code, autocomplete, jsx, tsx
1,718,503,566
se_56455887
stackoverflow
FRONTEND_DEVELOPMENT
React: useState or useRef?
React: useState or useRef? I am reading about React useState() and useRef() at "Hooks FAQ", and I got confused about some of the use cases that seem to have a solution both with useRef and useState, and I'm not sure which way is the right way. From the "Hooks FAQ" about useRef(): "The useRef() Hook isn’t just for DO...
https://stackoverflow.com/questions/56455887/react-usestate-or-useref
reactjs, react-hooks
1,559,719,434
se_67429079
stackoverflow
FRONTEND_DEVELOPMENT
Logout Google Account with React Apps
Logout Google Account with React Apps I have a problem regarding how to log out of my google account on the web using React. To login, it was successful, only when I logged out and then logged in again, I couldn't choose an account again because the previous account was still logged in. How do I make it happen when I ...
https://stackoverflow.com/questions/67429079/logout-google-account-with-react-apps
javascript, reactjs, google-api, google-oauth
1,620,362,192
se_75976189
stackoverflow
FRONTEND_DEVELOPMENT
How to enable/disable Hermes based on Android/iOS Environment Variables in React Native?
How to enable/disable Hermes based on Android/iOS Environment Variables in React Native? Due to compatibility issues of Hermes (in RN +71.0) with React Native Debugger, I want to disable Hermes on Development and enable it on Production automatically, with Android/iOS specific ENV files. In gradle.properties: # Use th...
https://stackoverflow.com/questions/75976189/how-to-enable-disable-hermes-based-on-android-ios-environment-variables-in-react
android, ios, reactjs, react-native, environment-variables
1,681,121,597
se_74411606
stackoverflow
FRONTEND_DEVELOPMENT
How to prevent useSWR trigger re-renders when state change in React?
How to prevent useSWR trigger re-renders when state change in React? I am facing a problem with re-renders in React, I have a two hooks like code below: const [open, setOpen] = useState(false); // toggle modal const { data } = useSWR('my_key_swr', fetcher); console.log(data); // 'data' will re-renders everytime 'ope...
https://stackoverflow.com/questions/74411606/how-to-prevent-useswr-trigger-re-renders-when-state-change-in-react
reactjs
1,668,243,507
se_79932300
stackoverflow
FRONTEND_DEVELOPMENT
How should I structure a 50-day learning plan for React and Node.js as a beginner with JavaScript basics?
How should I structure a 50-day learning plan for React and Node.js as a beginner with JavaScript basics? I have basic knowledge of HTML, CSS, and JavaScript (functions, arrays, objects), but I have not built any real-world projects yet. I want to learn full-stack development using React (frontend) and Node.js (backen...
https://stackoverflow.com/questions/79932300/how-should-i-structure-a-50-day-learning-plan-for-react-and-node-js-as-a-beginne
javascript, reactjs, node.js
1,777,262,754
se_79929201
stackoverflow
FRONTEND_DEVELOPMENT
Why is useEffect not running on route change when navigating between dynamic segments in my Next.js app router?
Why is useEffect not running on route change when navigating between dynamic segments in my Next.js app router? I am building a Next.js 14 app using the App Router. I have a dynamic route /products/[id] and I'm using useEffect with the params.id as a dependency to fetch data whenever the user navigates to a different ...
https://stackoverflow.com/questions/79929201/why-is-useeffect-not-running-on-route-change-when-navigating-between-dynamic-seg
javascript, reactjs, next.js, next.js14
1,776,749,339
se_56657296
stackoverflow
FRONTEND_DEVELOPMENT
SetValues Formik Function disables Formik HandleSubmit
SetValues Formik Function disables Formik HandleSubmit I have a form that can handle submission a couple of different ways. The difference is managed by a flag in the form Values that can either be true or false. I am running into this really weird issue where when I use the Formik setValues() function the form doesn...
https://stackoverflow.com/questions/56657296/setvalues-formik-function-disables-formik-handlesubmit
reactjs, forms, formik
1,560,893,278
se_79932219
stackoverflow
FRONTEND_DEVELOPMENT
React useState not updating inside setInterval even with functional update
React useState not updating inside setInterval even with functional update I'm building a simple timer component in React using setInterval to increment a counter every second. However, the state variable seconds never updates inside the interval callback – it always logs 0, and the displayed value stays 0. Here's my ...
https://stackoverflow.com/questions/79932219/react-usestate-not-updating-inside-setinterval-even-with-functional-update
javascript, reactjs
1,777,241,711
se_53459595
stackoverflow
FRONTEND_DEVELOPMENT
&quot;Peer dependency not installed&quot; warning, but they are installed
&quot;Peer dependency not installed&quot; warning, but they are installed On npm install, I am getting the following "peer dependency not installed" warnings: npm WARN react-select@0.9.1 requires a peer of react@^0.14.1 but none is installed. You must install peer dependencies yourself. npm WARN react-select@0.9.1 re...
https://stackoverflow.com/questions/53459595/peer-dependency-not-installed-warning-but-they-are-installed
node.js, reactjs, npm, react-redux
1,543,072,852
se_65934281
stackoverflow
FRONTEND_DEVELOPMENT
Recharts - Adjust the position of the yAxis cartesian grid
Recharts - Adjust the position of the yAxis cartesian grid How can I adjust my yAxis Cartesian grid to be at the start of the bar instead of the centre and also extend above the bar areas along the y-axis as shown in the second image. Click to view image Also how can I show the slope from one bar to the other as shown...
https://stackoverflow.com/questions/65934281/recharts-adjust-the-position-of-the-yaxis-cartesian-grid
reactjs, d3.js, graph, frontend, recharts
1,611,825,848
se_56254922
stackoverflow
FRONTEND_DEVELOPMENT
how to use react joyride in multiple pages
how to use react joyride in multiple pages Is there a way of creating a react-joyride tour in multiple pages.so my index.js file looks like below? I added react-joyride in index page because all components run through the index.js file. class IndexApp extends Component { constructor(props) { super(props); t...
https://stackoverflow.com/questions/56254922/how-to-use-react-joyride-in-multiple-pages
reactjs, zurb-joyride
1,558,521,493
se_79008346
stackoverflow
FRONTEND_DEVELOPMENT
TextInput in react-native
TextInput in react-native <TextInput> is restricted to maximum of two decimal places. When I type third decimal place, the number is added for a moment and then it disappears. I would like the third decimal not to show up at all. How can I program it to do this? Thanks a lot for you help!! Patrik <TextInput valu...
https://stackoverflow.com/questions/79008346/textinput-in-react-native
reactjs, react-native, formatting, textinput, react-native-textinput
1,726,869,353
se_76714567
stackoverflow
FRONTEND_DEVELOPMENT
Can&#39;t use Shadcn components
Can&#39;t use Shadcn components I've created a basic tailwind + react app. I'm trying to use Shadcn as well but am getting this error when trying to use a button component: ERROR in ./src/pages/homepage/index.js 5:0-48 Module not found: Error: Can't resolve '@/components/ui/button' in ... I have a jsconfig.json file ...
https://stackoverflow.com/questions/76714567/cant-use-shadcn-components
reactjs, tailwind-css
1,689,695,468
se_60835506
stackoverflow
FRONTEND_DEVELOPMENT
&quot;Any&quot; data type for GraphQL Query Return Type
&quot;Any&quot; data type for GraphQL Query Return Type I am a bit new to Typescript and am having some issues with data types. I was told that I should avoid using the 'any' data type since it negates the whole point of using Typescript. However, I am unable to change the data types. For example, when I run a GraphQ...
https://stackoverflow.com/questions/60835506/any-data-type-for-graphql-query-return-type
javascript, reactjs, typescript, graphql, apollo
1,585,068,184
se_41519457
stackoverflow
FRONTEND_DEVELOPMENT
how to combine checkbox with text input in reactjs
how to combine checkbox with text input in reactjs i am trying to build a Ui component in Reactjs which combines a checkbox and a text input attched to it (instead of a text label) so that if the checkbox is checked , the user can change the text input , and if its unchecked the user will not be able to do so the fin...
https://stackoverflow.com/questions/41519457/how-to-combine-checkbox-with-text-input-in-reactjs
user-interface, reactjs, uicomponents
1,483,777,900
se_72393420
stackoverflow
FRONTEND_DEVELOPMENT
React.useEffect not triggering when dependency has changed
React.useEffect not triggering when dependency has changed So essentially, I have a slice of state that is updating but not triggering the useEffect that has it as a dependency: const [editableParticipants, setEditableParticipants] = useState(*initial value*); const [joinLeftTimeState, setJoinLeftTimeState] = useState...
https://stackoverflow.com/questions/72393420/react-useeffect-not-triggering-when-dependency-has-changed
javascript, reactjs, react-hooks
1,653,575,158
se_79900779
stackoverflow
FRONTEND_DEVELOPMENT
Will invalidating a key without specifying parameters force a full cache refresh?
Will invalidating a key without specifying parameters force a full cache refresh? Consider the following: const useFetchPosts = (params?: Record<string, string>) => { async function fetchPosts({ queryKey, }: { queryKey: [string, Record<string, string> | undefined]; }) { const [, params] = queryKey; ...
https://stackoverflow.com/questions/79900779/will-invalidating-a-key-without-specifying-parameters-force-a-full-cache-refresh
javascript, reactjs, react-query
1,772,622,062
se_58753720
stackoverflow
FRONTEND_DEVELOPMENT
React-PDF Slow Performance with large PDF
React-PDF Slow Performance with large PDF I am using React-PDF from npm, with the PDFDownloadLink function to download a large pdf. But the PDF is being created on my app load created a long lag time. I have tried timers, lazy loading the component, changing the document data with a useState. I just need to load th...
https://stackoverflow.com/questions/58753720/react-pdf-slow-performance-with-large-pdf
javascript, reactjs, pdf, react-pdf
1,573,146,157
se_79749047
stackoverflow
FRONTEND_DEVELOPMENT
How to exclude specific routes from parent layout component in TanStack Router?
How to exclude specific routes from parent layout component in TanStack Router? Problem I have a route structure where I want most authenticated routes to use a shared _authenticated layout, but I need the settings page to use its own custom layout instead of inheriting the parent layout. Current Route Structure src/r...
https://stackoverflow.com/questions/79749047/how-to-exclude-specific-routes-from-parent-layout-component-in-tanstack-router
reactjs, tanstack-router
1,756,382,056
se_63379598
stackoverflow
FRONTEND_DEVELOPMENT
React-slick: Adding animation while sliding
React-slick: Adding animation while sliding I had created a slider using react slick now there is a requirement to change transition and animation of slides on prev and next button click. Got some help that add class to currently active slide while changing slide and add animation and transition effect to it. And remo...
https://stackoverflow.com/questions/63379598/react-slick-adding-animation-while-sliding
javascript, reactjs, slick.js, react-slick
1,597,245,395
se_75753328
stackoverflow
FRONTEND_DEVELOPMENT
Error in browser when i run my react project
Error in browser when i run my react project "I only get an error in browser, This the Error" : Unexpected Application Error! Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it'...
https://stackoverflow.com/questions/75753328/error-in-browser-when-i-run-my-react-project
javascript, reactjs, react-router
1,678,952,723
se_79930297
stackoverflow
FRONTEND_DEVELOPMENT
What are good ways to improve a simple React user administration app?
What are good ways to improve a simple React user administration app? I built a simple user administration app in JavaScript/React. It covers the basics, listing users, adding, editing, and deleting them, but I feel like there's a lot of room for improvement and I'm not sure where to focus next. Here is my App.jsx imp...
https://stackoverflow.com/questions/79930297/what-are-good-ways-to-improve-a-simple-react-user-administration-app
reactjs
1,776,884,229
se_67098685
stackoverflow
FRONTEND_DEVELOPMENT
How can I display a jpeg stream as an image?
How can I display a jpeg stream as an image? I've got an API with authentication, because of that I can't just use a normal <img> Tag like <img src="https://some-link.com/image.jpeg" />. Because I have to authenticate I'm using axios to make my call to the API: const instance = axios.create({ headers: { '...
https://stackoverflow.com/questions/67098685/how-can-i-display-a-jpeg-stream-as-an-image
javascript, html, reactjs, axios
1,618,432,137
se_75923962
stackoverflow
FRONTEND_DEVELOPMENT
React Router v6.10 Protected Route problem
React Router v6.10 Protected Route problem I'm trying to build something with react that has some protected routes. My main.jsx file: import React from "react"; import ReactDOM from "react-dom/client"; import { createBrowserRouter, RouterProvider } from "react-router-dom"; import "./index.css"; import store from "./a...
https://stackoverflow.com/questions/75923962/react-router-v6-10-protected-route-problem
reactjs, react-router, redux-toolkit
1,680,557,928
se_66675653
stackoverflow
FRONTEND_DEVELOPMENT
How to cleanup useEffect in React Native while using React Navigation?
How to cleanup useEffect in React Native while using React Navigation? I am using random user API to fetch user information with setInterval function and my useEffect looks like this: // Users.js useEffect(() => { const getUser = () => { fetch("https://randomuser.me/api") .then((res) => res.json()) ...
https://stackoverflow.com/questions/66675653/how-to-cleanup-useeffect-in-react-native-while-using-react-navigation
reactjs, react-native, react-hooks
1,615,993,103
se_61717976
stackoverflow
FRONTEND_DEVELOPMENT
How to display data from state in React?
How to display data from state in React? I was trying to create a structure in react having a datawith image and a option to select. If the option is selected then only submit button should display success alert. I have created a Json data which contain the details here is code sandbox link: https://codesandbox.io/...
https://stackoverflow.com/questions/61717976/how-to-display-data-from-state-in-react
reactjs
1,589,140,730
se_68480626
stackoverflow
FRONTEND_DEVELOPMENT
Styling an Image within a Text Component in React Native
Styling an Image within a Text Component in React Native I am trying to style an which is in a Text component. As far as I read in much forums, it is not possible to give it a margin, width, height. What I am basically trying to do is to get a result like this: Result wanted The thing is, if I wrap everything within ...
https://stackoverflow.com/questions/68480626/styling-an-image-within-a-text-component-in-react-native
javascript, reactjs, react-native, flexbox
1,626,938,038
se_54361063
stackoverflow
FRONTEND_DEVELOPMENT
Building timeline for video editor using React JS
Building timeline for video editor using React JS Especially looking for an idea or way around to achieve this. I am trying to build a video editor/mixture as in the above image using react js. This UI primarily targets to align different video/image media with timelines. As user drag video/image in any of the layer, ...
https://stackoverflow.com/questions/54361063/building-timeline-for-video-editor-using-react-js
reactjs, timeline
1,548,402,881
se_64034188
stackoverflow
FRONTEND_DEVELOPMENT
Deploying React app to production returns &quot;You need to enable JavaScript to run this app&quot;
Deploying React app to production returns &quot;You need to enable JavaScript to run this app&quot; Problem I have an axios call at "/artists", that gets a list of artists returned as an array of JSON. It works in development. However, in production it outputs an HTML element that says You need to enable Javascript be...
https://stackoverflow.com/questions/64034188/deploying-react-app-to-production-returns-you-need-to-enable-javascript-to-run
javascript, node.js, reactjs, vercel
1,600,885,699
se_56120720
stackoverflow
FRONTEND_DEVELOPMENT
How to make Previews in react-dropzone work with files other than images?
How to make Previews in react-dropzone work with files other than images? I need help with how to make the react-dropzone NPM package in making uploaded files show a preview on files other than Image files (*.png, *.jpg/jpeg, *.gif, etc. — those all generate a preview just fine). Currently, when I use Dropzone for up...
https://stackoverflow.com/questions/56120720/how-to-make-previews-in-react-dropzone-work-with-files-other-than-images
javascript, reactjs, upload, preview, react-dropzone
1,557,787,218
se_63526525
stackoverflow
FRONTEND_DEVELOPMENT
Material-ui drawer inside a container
Material-ui drawer inside a container How to set material-ui drawer inside a container in reactjs? I wrapped my app page in container with 600px max width. I would like to set the drawer to start into that container not in the body page (picture). I am using app bar position as absolute to implement on scroll events, ...
https://stackoverflow.com/questions/63526525/material-ui-drawer-inside-a-container
javascript, reactjs, material-ui, drawer
1,598,026,796
se_50841918
stackoverflow
FRONTEND_DEVELOPMENT
html-webpack-plugin Entrypoint undefined = index.html
html-webpack-plugin Entrypoint undefined = index.html I'm trying to set a webpack4 and React boilerplate, but facing issue rendering the index.html. For example, when I updated the title of the index.html and the index.html in /dist folder is not updated, and only title is rendered while nothing in index.js is rendere...
https://stackoverflow.com/questions/50841918/html-webpack-plugin-entrypoint-undefined-index-html
reactjs, html-webpack-plugin, webpack-4
1,528,906,638
se_61932918
stackoverflow
FRONTEND_DEVELOPMENT
Want to have an event handler for the browser&#39;s back button with next.js
Want to have an event handler for the browser&#39;s back button with next.js I am having a modal which while opening pushes a hash to url example.com/#modal, on browser back button click, I want to recognise that event so that I can toggle the state of modal. the point is, since Im using it with next.js (server side r...
https://stackoverflow.com/questions/61932918/want-to-have-an-event-handler-for-the-browsers-back-button-with-next-js
javascript, node.js, reactjs, next.js
1,590,058,611
se_71883632
stackoverflow
FRONTEND_DEVELOPMENT
Error: Cannot find module &#39;react-dev-utils/WatchMissingNodeModulesPlugin&#39;
Error: Cannot find module &#39;react-dev-utils/WatchMissingNodeModulesPlugin&#39; I have React.js application with the connection of Rust. Problem is about running the application. When I try to run npm start it return this error: throw err; ^ Error: Cannot find module 'react-dev-utils/WatchMissingNodeModulesPlugi...
https://stackoverflow.com/questions/71883632/error-cannot-find-module-react-dev-utils-watchmissingnodemodulesplugin
node.js, reactjs, npm, webpack, node-modules
1,650,023,231
se_43644633
stackoverflow
FRONTEND_DEVELOPMENT
How To Cache Images in React?
How To Cache Images in React? Suppose I have a list of url's like so : [ '/images/1', '/images/2', ... ] And I want to prefetch n of those so that transitioning between images is faster. What I am doing now in componentWillMount is the following: componentWillMount() { const { props } = this; const { pr...
https://stackoverflow.com/questions/43644633/how-to-cache-images-in-react
javascript, reactjs, caching, dom
1,493,241,240
se_71668510
stackoverflow
FRONTEND_DEVELOPMENT
How to force refresh on react instant search dom in algolia or fetch updated data as soon as it finished?
How to force refresh on react instant search dom in algolia or fetch updated data as soon as it finished? I am integrating algolia with react-instant-search-dom in firebase. After i update a product, I want the updated result to be reflected on the front end but it is not working as expected. It sometimes works but so...
https://stackoverflow.com/questions/71668510/how-to-force-refresh-on-react-instant-search-dom-in-algolia-or-fetch-updated-dat
reactjs, algolia, react-instantsearch
1,648,586,369
se_79929758
stackoverflow
FRONTEND_DEVELOPMENT
Hook errors in MUI Data Grid with fresh install
Hook errors in MUI Data Grid with fresh install I am using a stripped down version of the example used in the documentation, however I get these errors: Here's my code: import Box from '@mui/material/Box'; import { DataGrid, type GridColDef } from '@mui/x-data-grid'; import './App.css' const columns: GridColDef<(ty...
https://stackoverflow.com/questions/79929758/hook-errors-in-mui-data-grid-with-fresh-install
javascript, reactjs, mui-x-data-grid
1,776,810,677
se_64925866
stackoverflow
FRONTEND_DEVELOPMENT
React material UI close when the value selected - multi select
React material UI close when the value selected - multi select I am using react material UI for building my components. I am using react multi-select to get multiple values from the user. <FormControl className={clsx(classes.formControl, classes.noLabel)}> <Select multiple value={personName...
https://stackoverflow.com/questions/64925866/react-material-ui-close-when-the-value-selected-multi-select
reactjs, react-native, material-ui
1,605,859,699
se_79928568
stackoverflow
FRONTEND_DEVELOPMENT
How to redirect user to home if they&#39;re already logged in and is trying to access the login page?
How to redirect user to home if they&#39;re already logged in and is trying to access the login page? I have a component that redirects the user to whatever protected route they were trying to access after they log in via: export const ProtectedRoute = () => { const { token } = useAuth() const location = useLocati...
https://stackoverflow.com/questions/79928568/how-to-redirect-user-to-home-if-theyre-already-logged-in-and-is-trying-to-acces
javascript, reactjs, react-router
1,776,662,274
se_76241919
stackoverflow
FRONTEND_DEVELOPMENT
How can I fix error TS5023 throwed by adding &quot;allowImportingTsExtensions&quot; in tsconfig.json file?
How can I fix error TS5023 throwed by adding &quot;allowImportingTsExtensions&quot; in tsconfig.json file? While building or running my React project I encounter the following error: Could not parse tsconfig.json. Please make sure it contains syntactically correct JSON. Details: error TS5023: Unknown compiler option ...
https://stackoverflow.com/questions/76241919/how-can-i-fix-error-ts5023-throwed-by-adding-allowimportingtsextensions-in-tsc
reactjs, json, typescript
1,683,968,789
se_43313178
stackoverflow
FRONTEND_DEVELOPMENT
React Native Error - yarn&#39; is not recognized as an internal or external command
React Native Error - yarn&#39; is not recognized as an internal or external command I am not able to run the sample react Native AwesomeProject project. Can anyone help? Below is the details. C:\Users\dip\AwesomeProject>react-native run-android 'yarn' is not recognized as an internal or external command, ope...
https://stackoverflow.com/questions/43313178/react-native-error-yarn-is-not-recognized-as-an-internal-or-external-command
facebook, reactjs, react-native, compiler-errors
1,491,782,244
se_75458420
stackoverflow
FRONTEND_DEVELOPMENT
Material UI: How can I disable scroll bar in datagrid?
Material UI: How can I disable scroll bar in datagrid? how can I disable the scroll bar which is present in the bottom? for more information, I have already tried autoPageSize, but it didn't work. autoPageSize docs link import { DataGrid } from '@mui/x-data-grid'; <DataGrid rows={rows} columns={columns} ...
https://stackoverflow.com/questions/75458420/material-ui-how-can-i-disable-scroll-bar-in-datagrid
javascript, reactjs, material-ui, datagrid, mui-x-data-grid
1,676,456,892
se_77894799
stackoverflow
FRONTEND_DEVELOPMENT
AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: invalid vendor key, can not find appid
AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: invalid vendor key, can not find appid Hi i'm trying to setup agora.io in a react/next typescript project, but i have this error in my console: Agora-SDK [ERROR]: [client-a361f] join number: 1, Joining channel failed, rollback AgoraRTCException: AgoraRTCError CAN_NOT_GET_GATE...
https://stackoverflow.com/questions/77894799/agorartcerror-can-not-get-gateway-server-invalid-vendor-key-can-not-find-appid
reactjs, typescript, next.js, agora.io
1,706,445,524
se_79929130
stackoverflow
FRONTEND_DEVELOPMENT
Starting to learn React, at first it got executed but now its not, and giving such errors
Starting to learn React, at first it got executed but now its not, and giving such errors [plugin:vite:import-analysis] Failed to resolve import "./src/assets/Header.jsx" from "src/App.jsx". Does the file exist? C:/Users/MCLAREN/Desktop/Website react/my-react-app/src/App.jsx:1:19 1 | import Header from "./src/asset...
https://stackoverflow.com/questions/79929130/starting-to-learn-react-at-first-it-got-executed-but-now-its-not-and-giving-su
javascript, reactjs, import
1,776,733,828
se_78667134
stackoverflow
FRONTEND_DEVELOPMENT
Why cannot destructure property of &quot;undefined &quot; as it is undefined when parent Component give values?
Why cannot destructure property of &quot;undefined &quot; as it is undefined when parent Component give values? I'm working on a fake shopping cart project with React for The Odin Project (a free course online to learn Javascript). I'm working with Vite, React-Router, and Vitest for this project. I have created a rout...
https://stackoverflow.com/questions/78667134/why-cannot-destructure-property-of-undefined-as-it-is-undefined-when-parent-c
reactjs, react-props
1,719,315,843
se_79927777
stackoverflow
FRONTEND_DEVELOPMENT
How would i sign a user out once the jwt token expires in react?
How would i sign a user out once the jwt token expires in react? I currently get a jwt token from my backend and save it in my localStorage, and i would like the session to expire after a certain amount of time, and automatically sign the user out, what would be the best way to go about implementing this alongside rea...
https://stackoverflow.com/questions/79927777/how-would-i-sign-a-user-out-once-the-jwt-token-expires-in-react
reactjs
1,776,494,189
se_79794140
stackoverflow
FRONTEND_DEVELOPMENT
onBlur firing before onChange when selecting from dropdown - value not saved
onBlur firing before onChange when selecting from dropdown - value not saved I have a React component WidgetInlineEditField that wraps an inline-editable input field. When editing a time value using a TimeInput component with a dropdown, the onBlur event fires before the onChange event, causing the selected value to b...
https://stackoverflow.com/questions/79794140/onblur-firing-before-onchange-when-selecting-from-dropdown-value-not-saved
javascript, reactjs, dropdown, onchange, onblur
1,760,858,641
se_67115723
stackoverflow
FRONTEND_DEVELOPMENT
React change tab on changing the state
React change tab on changing the state I'm trying to change the defaultActiveKey attribute of Tab in antd when click in other component. Below is the code to get active key and set tab. import { Tabs } from "antd"; import React from "react"; const tabActiveContext = React.createContext({ **setActivetab: (at) => { ...
https://stackoverflow.com/questions/67115723/react-change-tab-on-changing-the-state
reactjs, antd, react-context
1,618,518,996
se_59501392
stackoverflow
FRONTEND_DEVELOPMENT
React problem with react-hook-form and Material-UI
React problem with react-hook-form and Material-UI I am trying to construct a form with a dynamic field (and a switch to show/hide it). I want to use both react-hook-forms (for its great features: (1) automatically populate the data structure in the way I want, without me having to do it manually, and (2) the feature ...
https://stackoverflow.com/questions/59501392/react-problem-with-react-hook-form-and-material-ui
reactjs, material-ui, react-hook-form
1,577,452,647
se_69656413
stackoverflow
FRONTEND_DEVELOPMENT
How to read from a csv file in a React app?
How to read from a csv file in a React app? I built a super basic react app using the typescript version of create-react-app. In my react app I want to display data from csv files I have added my project. Imagine a data.csv file under src. On a button click I want to trigger a function that reads this file, uses some ...
https://stackoverflow.com/questions/69656413/how-to-read-from-a-csv-file-in-a-react-app
javascript, reactjs, typescript, csv
1,634,794,948
se_58537397
stackoverflow
FRONTEND_DEVELOPMENT
Test a onClose callback from dialog when using material UI &amp; react testing library?
Test a onClose callback from dialog when using material UI &amp; react testing library? I'm currently trying to get complete test coverage on my react app however I'm stuck with jest when trying to test the callback event params from material UI components. I thought by testing the escape event I could cover the onCl...
https://stackoverflow.com/questions/58537397/test-a-onclose-callback-from-dialog-when-using-material-ui-react-testing-libra
javascript, reactjs, jestjs, material-ui, react-testing-library
1,571,906,224
se_72552765
stackoverflow
FRONTEND_DEVELOPMENT
How to get the elements from a table after all components are rendered?
How to get the elements from a table after all components are rendered? I'm trying to test my UsersTable page in React, but the testing library gets the elements before they have time to render. Please check my code below: UsersTable.js import React, { useState, useEffect } from 'react'; import { Link } from 'react-ro...
https://stackoverflow.com/questions/72552765/how-to-get-the-elements-from-a-table-after-all-components-are-rendered
javascript, reactjs, jestjs, react-testing-library
1,654,726,436
se_65543136
stackoverflow
FRONTEND_DEVELOPMENT
React onClick Event in Functional Component
React onClick Event in Functional Component I try to add an onClick event, that would show/hide a div in my functional component, can you please help why it doesn't work? export default function OnClickFunctionalComponent (){ const [showStatements, setShowStatements] = useState(false); const onClick = () => s...
https://stackoverflow.com/questions/65543136/react-onclick-event-in-functional-component
reactjs, onclick, react-hooks, react-functional-component
1,609,615,269
se_73523166
stackoverflow
FRONTEND_DEVELOPMENT
Is there a way to transition a border in with Tailwind?
Is there a way to transition a border in with Tailwind? I'm trying to make it so that a border transitions on to the page smoothly once I reach a y point but I am having trouble with the transition animation. I'm using react and tailwind. This is the code I have so far. const Navbar = () => { const [navStyles, setNa...
https://stackoverflow.com/questions/73523166/is-there-a-way-to-transition-a-border-in-with-tailwind
css, reactjs, css-transitions, tailwind-css
1,661,732,579
se_70848650
stackoverflow
FRONTEND_DEVELOPMENT
Get Folder path using React js
Get Folder path using React js I want to get path of the folder so that i need to post the path of the selected folder to the backend so it receives like this string path2 = Path.GetDirectoryName(@"C:\Users\Public\Desktop\workspace\"); I tried <input directory="" webkitdirectory="" type="file" />it doesn't show the ...
https://stackoverflow.com/questions/70848650/get-folder-path-using-react-js
reactjs, directory
1,643,113,671
se_51857389
stackoverflow
FRONTEND_DEVELOPMENT
KeyboardAvoidingView not working with Expo
KeyboardAvoidingView not working with Expo I cannot seem to get the keyboard to push the content up in my React-Native Expo app. I am testing this from the expo App by publishing it from my development machine. Try as I might, nothing seems to push the view up when the keyboard comes into focus, is there a specific ...
https://stackoverflow.com/questions/51857389/keyboardavoidingview-not-working-with-expo
javascript, reactjs, react-native, expo
1,534,330,490
se_34180629
stackoverflow
FRONTEND_DEVELOPMENT
react-native - Fit Image in containing View, not the whole screen size
react-native - Fit Image in containing View, not the whole screen size I'm trying to fit images in their containing views so that I can have a seamless grid of images. The problem is that resizeMode='contain' seems to fit to the width of the screen or at least some higher level container, I need the images to fit to t...
https://stackoverflow.com/questions/34180629/react-native-fit-image-in-containing-view-not-the-whole-screen-size
javascript, reactjs, flexbox, react-native
1,449,669,494
se_70382479
stackoverflow
FRONTEND_DEVELOPMENT
Error Library web3 and Webpack in react and angular
Error Library web3 and Webpack in react and angular I work with "react": "^17.0.2", I tried to add the web3 library by npm i web3 But when I try to instantiate my web3 object like this web3 = new Web3((window as any).ethereum); Or like this web3 = new Web3(); And I try to start my app (npm start) I get a lot of errors...
https://stackoverflow.com/questions/70382479/error-library-web3-and-webpack-in-react-and-angular
reactjs, webpack, web3js
1,639,672,170