All Questions
Tagged with react-component or reactjs
476,707 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
20
views
Websocket disconnects after hours; reconnect fails unless new tab or service restart (Nginx reverse proxy)
I use Nginx as a reverse proxy for a websocket. After running for hours, the websocket connection drops. Reconnect from the same tab fails, but opening a new browser tab connects immediately. ...
1
vote
0
answers
48
views
Is React 18 with react-server-dom canary builds vulnerable to CVE-2025-55182?
I’m maintaining a React 18 project and I’m trying to assess the impact of CVE-2025-55182 (React Server Components/"React2Shell").
Most advisories mention affected versions in the React 19 ...
-3
votes
1
answer
32
views
React: Calculate dynamic "Shrink to Fit" (Contain) overlay coordinates for an image with different aspect ratios
I am building a photo printing UI in React where users select a physical print size (e.g., 6x4, 5x7) and need an overlay to represent the "Paper."
I need to implement a "Shrink to Fit&...
-3
votes
0
answers
46
views
Authorized routing issue in browserrouter in react [closed]
I have an issue with my router.tsx. The problem seems to be somewhere in the student layout, but I cannot figure out what is wrong.
As soon as I try to open localhost:5173/, it immediately checks ...
1
vote
1
answer
47
views
React Native video player getting resize in landscape mode
I am trying to create a react native video player using react native video library and when I switch to landscape mode by clicking on fullscreen icon video playing in landscape mode with full width ...
1
vote
1
answer
86
views
Calling setState synchronously within an effect can trigger cascading renders
I get the warning "Calling setState synchronously within an effect can trigger cascading renders" for my useEffect:
useEffect(() => {
if (positionData.length > 0) {
const ...
Best practices
0
votes
0
replies
56
views
Latest leaf selected in MantineUI Tree component
I'm trying to use MantineUI Tree component with very simple tree data:
const treeData: TreeNodeData[] = [
{
label: "parent 1",
value: "1",
children: [
...
-4
votes
0
answers
74
views
What is the use of children in React? [closed]
I have a code of useContext below and I want to know why I need to wrap the UserDataContext.Provider to children. Can't I use <App /> because <App /> component has almost every component ...
-4
votes
0
answers
59
views
How do I implement animations to svg icons in React native tab navigation? [closed]
I am developing an app with Expo and React native (following the Expo tutorial), and I wanted to do a scaling and opacity animation on the tab icons, to change not the color, but those properties.
I'm ...
0
votes
0
answers
53
views
Paginated table causes duplicate rows or infinite loop when sorting [closed]
I’m building a reusable paginated table component using React + Inertia.js.
The table supports:
server-side pagination
sorting
searching (debounced)
filters
bulk actions
Problem
I’m facing two ...
1
vote
1
answer
41
views
Unable to update data in redux toolkit
I'm making a CRUD app using Redux Toolkit. It includes all the basic operations, but the Update operation doesn't work as expected. Please take a look at the following code.
postSlice.js
export const ...
1
vote
2
answers
56
views
Expo Router not working in Nx monorepo – stuck on splash / welcome screen
What I’ve done so far
1. Installed Expo Router.
"expo-router": "~6.0.21"
2. Updated package.json
{
"main": "expo-router/entry"
}
3. Updated app.json
{
&...
-2
votes
1
answer
62
views
Why Tailwind extension "Tailwind CSS IntelliSence" does not work in tailwind v4.1.18(React js vite) [closed]
"Recently, I started styling my website using Tailwind CSS. Since I wasn't familiar with most of the styles, I began using the 'Tailwind CSS IntelliSense' extension, which suggests styles in a ...
1
vote
2
answers
59
views
Login session always remains true in Next.js, even after logout
Currently i am learning Next JS, as a part of that i am implementing a form with login logout functionality. Also setting cookie and session for the same. My flow is like if logged in shows logout btn ...
-1
votes
0
answers
56
views
React app running in iframe periodically has issues detecting clicks when iframe increases in size
I have a React app that is experiencing a random, elusive bug that occurs when the app is running in an iframe (as a ChatGPT app).
All areas of the app window are fully clickable when the iframe is ...