MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/1uo3h5n/askjs_what_small_javascript_pattern_made_your/ovqbfxw/?context=3
r/javascript • u/[deleted] • Jul 05 '26
[removed]
26 comments sorted by
View all comments
Show parent comment
3
That's basically hooks with memo, but provided by React by default with components being memoized based on the props. It's always a nice pattern to separate logic in HOC and presentation in the wrapped component.
View all comments
Show parent comment
3
u/azhder Jul 05 '26
That's basically hooks with memo, but provided by React by default with components being memoized based on the props. It's always a nice pattern to separate logic in HOC and presentation in the wrapped component.