python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Problems with multiple rerendering in React - Add to Favourite List example
I am building a small framework for e-commerce or blog app using React.
One of the features of this framework is an "Add to Favourite List" function.
The app tree works as follow :
App file ...
FJTAIL
Votes: 0
Answers: 1
Why does useIsMounted return a callback instead of the value itself?
I'm referring to useIsMounted from usehooks-ts. I'm trying to understand why the function is returning useCallback(() => isMounted.current, []) instead of just isMounted.current.
I've tested both i...
Vee
Votes: 0
Answers: 1
Should I remove all unecessary usage of usecallback and memo in a React app?
im working on a relatively large React codebase and I've seen that the previous developers used memo and usecallback liberally with the thought that by using these would improve performance. Obviously...
fardown
Votes: 0
Answers: 1
React Component re-renders in iOS but not in Android
I am developing an app using React Native and I'm struggling to figure out why my component re-renders in iOS but not in Android. I'm expecting it not to re-render, which means that the Android behavi...
Lucas Antunes
Votes: 0
Answers: 1