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
83
questions
0
votes
0
answers
12
views
How to add ssl to flask socket server
Currently, I am using a flask server for socket programming. I want the server to run on https instead of https with public static IP. That way the frontend app, which is in React JS, can access this ...
-2
votes
0
answers
25
views
React app is giving me CORS policy error. How can I fix it?
I'm trying to make a login page in React using Vite. To verify login credentials I have created an API in PHP. When I test the API with Postman it returns a data but with my react application it is ...
-1
votes
1
answer
52
views
How to convert this raw pdf to pdf file
I have an api call which returns raw pdf. I'm storing them in a variable called rawpdf. I want to display that in my webpage. As shown here is the raw pdf file
//axios function retrned data
%PDF-1.4
%�...
0
votes
0
answers
19
views
While genrating Archive build for my react native No Expo project I get error
XCODE Error:
I already tried to delete the DerivedData folder but it did not work.
error: unable to open dependencies file (/Users/codecrewinfotech/Library/Developer/Xcode/DerivedData/...
-1
votes
0
answers
16
views
Screenshotting of SVG D3 diagram with wrong rounding edges [closed]
I'm trying to take a screenshot of SVG of my Sankey diagram generated by D3.js in React app. Every time I try to capture it using different libraries and methods, the edges of the links become rounded....
0
votes
0
answers
12
views
'UserInput\01-starting-project\node_modules\.bin\' is not recognized as an internal or external command
'UserInput\01-starting-project\node_modules.bin' is not recognized as an internal or external command, operable program or batch file.
node:internal/modules/cjs/loader:1222
throw err;
Error: Cannot ...
1
vote
0
answers
16
views
e.nativeEvent.offsetX is 0 on mouseMove inside setState function
I have the following code that gets the cursor position on a canvas element. The code works fine in Chrome, but in Firefox, the e.nativeEvent.offsetX is 0 inside the set state function and outside is ...
0
votes
0
answers
17
views
using useMemo to improve mounting time/memoing HTML?
I'm curious if there is a real performance gain in what I did and it's not just in my mind.
I basically had an ImageCard component which took an image and had some extra stuff that took a bit to ...
-1
votes
0
answers
14
views
Is there a way to import an cdn file that has no npm package to react/vite? [closed]
I would like to install a library for animation winds into react. I already installed leaflet which is not meant for React but this one has an npm package and I kinda did it but this windy.com lib is ...
1
vote
1
answer
13
views
iOS returns an error regarding React-Codegen from project Pods Explicit dependency on target 'React-Codegen' in stopped
When I run the command npx react-native run-ios --simulator "iPhone 15 Pro" in my terminal on my Mac M1 receive this error
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/databasket/...
0
votes
0
answers
13
views
How to debug scroll event fired a lot later than the pointermove event?
With Chrome's 20x slowdown + device emulation, you can see that the first scroll event occurs 230ms after the first mousemove event:
On Android (a flagship 2023 phone), without any artificial ...
1
vote
1
answer
20
views
Unable to publish Reactjs Website on GitHub Pages: Error 404
I am creating a website using ReactJS and am trying to publish on github using github pages. However I am having issues:
I've seen all 404-related questions here with no luck.
My package.json:
{
&...
-2
votes
0
answers
23
views
Why res.clearCookie() is not working after deploying to vercel?
First of all, everything works fine when running on localhost.
However, after deploying the app to Vercel when the user tries to log out it should clear cookies with res.clearCookie() but it doesn't ...
0
votes
0
answers
13
views
Frontend: PDF preview [blob URL] not working in mobile using iframe
Cannot preview the pdf file selected in the modal:
const onFileSelect = async (
e: React.ChangeEvent<HTMLInputElement>,
index: number,
school_doc_setting_id: number,
) => {
...
1
vote
1
answer
30
views
React js not fetching and rendering after importing data
I fetch from db new data and render (setState) after importing excel data, problem not working. I have played around to trying to get it working so copied the fetch from getItems to ...