Shloud I use use memo or memoizing components?
Answered
Brown bear posted this in #help-forum
Brown bearOP
Hello, I’ve been asking my self this question for quite time ago.
A common use case when you have a component with some states and that component contains some sub-components.
Some of this sub-component (e.g. a headline component) might not change between re-renders, in this case, should we use use memo to avoid those re-renders or would react handle it effectively?
Thanks in advance
A common use case when you have a component with some states and that component contains some sub-components.
Some of this sub-component (e.g. a headline component) might not change between re-renders, in this case, should we use use memo to avoid those re-renders or would react handle it effectively?
Thanks in advance