Questions tagged [reactjs]
React is a JavaScript library for building user interfaces. It uses a declarative, component-based paradigm and aims to be efficient and flexible.
reactjs
8
questions with bounties
-1
votes
1
answer
100
views
+50
Sequentially Numbering Footnotes with React
I'm trying to create a footnote component for my new React version of my blog, but, so far, I'm not able to get the numbering right.
I'm applying basically the same logic I did for my Web Components ...
0
votes
1
answer
51
views
+50
How to Resolve Internal Server Error (500) When Running React SSR Application on IIS with iisnode
I'm encountering an issue with my React SSR (Server-Side Rendering) application deployed on an IIS server using iisnode. The application runs fine locally with SSR, but when I try to access it through ...
1
vote
0
answers
61
views
+50
Why does React's startTransition behave very differently from useDeferredValue?
I had a bunch of useDeferredValue() in my codebase, I thought it was enough for concurrent mode. However, it wasn't splitting up renders into small chunks. Renders triggered by setState wrapped in ...
1
vote
1
answer
60
views
+50
Is there a way to make React's startTransition not wait for Suspense?
As far as I know, if an update inside startTransition causes components to suspend, React would wait for those components to unsuspend before completing the transition. However, I don't want React to ...
2
votes
1
answer
75
views
+50
How to run useEffect's cleanup function when a suspended component unmounts?
When a suspended component unmounts, useEffect's cleanup function doesn't run. This leads to memory leaks, unused event handlers, etc. This makes useEffect unintuitive to use, since we'd typically ...
0
votes
2
answers
37
views
+50
generating proto file for reactjs with protoc command show error: 'protoc-gen-js' is not recognized
i want generate a proto file for reactjs
this is the commands I tested:
protoc --js_out=import_style=commonjs,binary:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:. *.proto
protoc -I=. ./...
-1
votes
1
answer
45
views
+50
Not able to use CJS(commons) npm package in ESM(type=module) project
I had developed one npm package for my internal use which is written in CommonJS as it uses the express.js so i kept it in common.js
but when i try to import that package in my react.js project along ...
-1
votes
0
answers
39
views
+100
Are put actions in redux-sagas dealt with atomically together with the triggering action?
Suppose I have a redux state with two slices. Each slice holds one number.
One number is controlled with the action SET_NUMBER and the other number is controlled with SET_OTHER_NUMBER.
Furthermore I ...