close
Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
65 views

I am trying to make an automatic scroll preference in production environments. For the scrolling utility for my React website I have chosen TypeScript due to what I have heard about its ability to ...
AnnoyingCuriosity's user avatar
Best practices
0 votes
0 replies
42 views

I am working on a large React application that supports multiple user roles such as Admin, Manager, Editor, and Viewer. Each role has access to different pages, components, actions, and API operations....
Asad Saeed's user avatar
Best practices
0 votes
2 replies
109 views

I'm wondering why some ways of declarations are valid while others are not and are throwing errors as shown below: Correct export const useDebounce = <T,>(val: T): T => { const [...
dallasarch's user avatar
Best practices
0 votes
1 replies
53 views

I'm developing an extended dialect of Markdown. I want to make certain elements interactive and am aiming for a SSR/hydration approach using vanilla React. However most of the document is "dumb&...
Florian Käferböck's user avatar
-2 votes
0 answers
37 views

I'm building a music player in ReactJS, and for that, I wanted the audio player to be toggled between playing and paused when the space key is pressed. So, for that, I added an event listener code ...
Agrim Singh's user avatar
Advice
0 votes
1 replies
89 views

I'm currently working on a personal project related to Warhammer. Because I needed to test some things, I have made an test project for a quiz that would help select a faction. But I'm kind of still ...
ZeeMan's user avatar
  • 1
-4 votes
1 answer
99 views

This code <script crossorigin="" src="https://unpkg.com/react@18/umd/react.production.min.js"></script> <script crossorigin="" src="https://unpkg.com/...
peter300's user avatar
-1 votes
1 answer
86 views

I am working on a Next.js application with App Router and noticed that my API route is getting called twice during development. I have a simple fetch inside useEffect: useEffect(() => { ...
Sagar Muchhal's user avatar
Best practices
0 votes
1 replies
97 views

I am working on a social media platform and have a feeds page, when user scroll down the feeds page we have to show the author, newsletter recommendations, currently I have hard coded this showing ...
Farhan Asghar's user avatar
4 votes
2 answers
439 views

I noticed that the ESLint React rules no-unstable-default-props and no-unstable-context-value are disabled by default. They seem to be useful rules regarding avoiding unnecessary re-renders through ...
hb20007's user avatar
  • 610
Tooling
3 votes
8 replies
143 views

I am building an e-commerce application with Next.js and I need to manage global state for features like cart, user authentication, and product listings. I have experience with both Redux Toolkit and ...
Waqas Ahmed's user avatar
4 votes
1 answer
102 views

I recently upgraded our application to React 19 and started refactoring our legacy useEffect DOM cleanups to use the new Ref Cleanup Function feature (where callback refs can return a cleanup function)...
ttboy's user avatar
  • 1
-2 votes
0 answers
60 views

I'm trying to build a UI where a large heading partially reveals an image inside the text while the remaining part of the image stays visible normally below the text. Layout idea: Top section ...
yogesh kodlinge's user avatar
Best practices
0 votes
1 replies
128 views

i need to alert to the user when he´s going to leave the URL where i have an Text Editor. I´m working with React + JS. I declare an state that´s change to true when the user starts typing on the Text ...
user32732200's user avatar
Best practices
1 vote
11 replies
214 views

I want to know about what are the best practices for React hook useState object update so not lose data and give always latest state even I use nested methods and update continuously. When I update my ...
Maulik Jamod's user avatar

15 30 50 per page
1
2 3 4 5
31707