Skip to content
RED SAG Skills
mediumStudy question · answer published in React interview questions, so no pointsreactpatternshooks

Sharing logic: hook or HOC

Several components need the current online/offline status. Why is a custom hook usually preferred over a higher-order component today?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions