476,838 questions
-4
votes
0
answers
33
views
Viewing .tsx design files locally and privately (rendered) [duplicate]
I am finding a way to visualize rendered .tsx files locally and privately. Those .tsx design files are what claude usually produce when you ask for design ideas for a project.
I have been checking ...
-4
votes
0
answers
55
views
viewing .tsx design files locally and privately [closed]
I’m looking for a way to locally and privately visualize/render .tsx files on my PC.
Specifically, I’m referring to the .tsx design files that tools like Claude generate when asked for UI or design ...
0
votes
2
answers
45
views
FastAPI returns correct NumPy output locally but React fetch receives corrupted / inconsistent data in production
I’m building a small ML-backed API using FastAPI (Python) and consuming it from a React frontend.
Locally, everything works as expected.
However, in production (Docker + reverse proxy), the same ...
-10
votes
1
answer
74
views
Unexpected end of JSON input / Unexpected token '<' when using response.json() with fetch [closed]
I am calling an API using fetch() in a React application. The request succeeds, and response.ok is true, but when I try to parse the response using response.json(), I get this error:
Uncaught (in ...
-1
votes
1
answer
64
views
Rendering data in a React component
I have formatted the object accordingly and my to-do items are showing. When deleting a item the issue persists that the item only goes away from the UI when manually reloading the page. How can this ...
Advice
0
votes
2
replies
26
views
How exactly does SSR work when it comes to lazy loaded components?
I am reading this NextJS documentation, but there is something I don't understand: What's the point of SSR when it comes to lazy-loaded components? SSR is designed to return the rendered HTML ...
0
votes
1
answer
31
views
Uncaught (in promise) ZodError
I am working on a input form for adding a food item but I ham having a error which I could not solve and need help. Below is code:
const schema = zod.object({
name: zod.string().min(2, &...
2
votes
1
answer
69
views
“Element type is invalid” error when component is inside src folder, but works when placed in node_modules
I installed the required packages: npm install react-slick slick-carousel
But I am getting this error when trying to use react-slick:
Element type is invalid: expected a string (for built-in ...
-1
votes
2
answers
37
views
CSS styling error with React: Container gets shifted with use of viewport width [closed]
So basically I have this problem with the viewport width not working as wanted in React. I just want to make a simple design with the page having a background and a timer across with a blurred ...
Best practices
1
vote
1
replies
54
views
I want to improve my program thats about a React Tasklist
We need to make a program for school, it works just fine I let gemini do some comments, they are in german tho, I could change it to english if I need to, I would like to know how I could improve it. ...
0
votes
0
answers
33
views
Cypress E2E test - override accountContext value
Background
React SPA with AWS Cognito for authentication. We have a page with restricted access; users must be a member of <groupA> in order to view /restricted_page.
At login, we have:
const { ...
-5
votes
0
answers
54
views
SPA with lazy routes: handle new release bundle without crashing [closed]
I have a React single-page application with lazy imports and lazy routes.
The problem is common: when I build a new bundle, release it, and then try to fetch a lazy-loaded component, the app crashes. ...
0
votes
0
answers
22
views
Ant Design X-axis label in vertical needed to be straight using of Column
This is my config file for Column of Ant Design
const config = {
data,
xField: 'ruleLabel',
yField: 'ruleCount',
xAxis: {
label: {
autoRotate: false
}
},
style: {
...
-1
votes
0
answers
24
views
PrimeReact <Chips> adds the chip after typing only ONE character in Microsoft Teams (SPFx React App)
I am using PrimeReact in an SPFx React application that runs inside Microsoft Teams.
The component behaves normally in a browser, but inside Teams it automatically adds a chip after typing just one ...
-3
votes
0
answers
39
views
BurpSuite reports “PHP source code disclosure” inside React build chunk file — but app has no PHP [closed]
I’m working on a React (Create-React-App) project that is deployed behind CloudFront + S3.
Our application is 100% frontend JavaScript — we do not use PHP anywhere in our codebase or backend.
However, ...