2,526,546 questions
Best practices
0
votes
0
replies
6
views
Splitting website css and js files into smaller riles or combining them in 2025
Whilst this question has been asked many times before there are seldom recommendation on it with modern browsers in 2025.
Example:
Total CSS for a website is 200kb.
Total JS is 100kb.
We know the ...
0
votes
0
answers
16
views
In Next.js App Router:, cookie set in server action is not available during initial client render
I encountered a unexpected behavior with cookies in a Next.js when setting a cookie inside a server action and attempting to read it during the initial render of a client component. The server action ...
-3
votes
0
answers
20
views
I have the logic for my code but difficulty writing the code. Any help? please [closed]
Whenever I start to code, I have ideas but always the coding part gets messy. I move in randomness and its hard to merge the code then. Anyone help me how to structure the code so I never reach the ...
-2
votes
0
answers
34
views
Invalid hook call. Hooks can... in Astro.js with React
I'm making a personal blog with Astro.js, and I'm using @astrojs/react to integrate React in my project.
I've searched web first, but I even can't locate where the error happend because I don't know ...
-2
votes
1
answer
28
views
Send a confirmation Email onFormSubmit in Google Forms
I am a beginner with Google App Script and JavaScript.
I am trying to send a confirmation email using the onFormSubmit trigger in Google Forms. The code is connected to the trigger and has been ...
-3
votes
0
answers
39
views
How do I accurately determine my mouse position relative to an html element in react? [closed]
I have an app that contains a canvas I am drawing to, and I'd like to be able to track the mouse position accurately. The issue I face is that the farther you go towards the bottom right, the less ...
-1
votes
0
answers
24
views
Trying to get these slide indicator dots to stay on the right
I am working on a portfolio project and im trying to get these slide indicator dots to stay on the right of the screen and in the middle of the slide. Ive currently got it on fixed, which i dont want ...
0
votes
0
answers
48
views
Schema validation failed with the following errors in Angular project
I have two similar Angular projects (both on Angular 20) and currently one of the projects when I run the npm run start command I am constantly getting the error below. Should I remove the package-...
1
vote
1
answer
24
views
React Native: Return value from Child Component to Parent while Child is receiving data from Parent
I was initially following this StackOverflow answer to obtain data from Child component but given how I had set the component up (based on another StackOverflow answer that I have since lost) i am not ...
0
votes
0
answers
20
views
TipTap Shows Horizontal Line Cursor When Drag-and-Dropping on a New Line
When I drop content into the TipTap editor on a new line that doesn’t already exist, I see a horizontal line cursor. Why does this happen, and how can I fix it?
here is my tiptap extension ...
0
votes
1
answer
39
views
How do I configure internationalization (i18n) properly in a web application(react)? [closed]
I’m building a web application that needs to support multiple languages, and I want to set up internationalization (i18n) in a clean and maintainable way.
Specifically, I’m looking for guidance on:
...
-11
votes
1
answer
82
views
Unexpected end of JSON input / Unexpected token '<' when using response.json() with fetch [closed]
Clarification: I am not parsing HTML inside my own API. I am calling Swiggy’s public-looking API directly from a React frontend for learning and practice purposes only. The issue is that this endpoint ...
0
votes
1
answer
70
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 ...
1
vote
1
answer
21
views
React Native: Animate stacked views separately (tinder swipe mimic)
I currently have a loop that generates some Animated.Views on top of one another (like in a ZStack). With my code as is, all the views move together on a single swipe rather than one by one on ...
0
votes
2
answers
55
views
TypeScript says module not found for @polymarket/clob-client even though it is installed and in node modules
I have installed @polymarket/clob-client and it is in my node_modules but typescript still says the module is not found when i try to use it
This is index.ts
`
import {ethers} from "ethers";
...