News for hackers. Stuff that matters.
Re:Why I don't miss React: a story about using the platform by droidist2 on Tuesday May 03, 2022 @09:25PM (#31255751)
What's more, if you want it to only do this when passed new props and not at other times, you have to use things like React.memo:

"If your component renders the same result given the same props, you can wrap it in a call to React.memo for a performance boost in some cases by memoizing the result. This means that React will skip rendering the component, and reuse the last rendered result."

https://reactjs.org/docs/react-api.html#reactmemo

There are no comments on this comment yet.