I just can't understand HOC. We can use custom components for reusable code and logic, can't we?
Sorry for the late response. Yes, but most times I actually use HOCs for determining which components should be rendered. Like choosing when to render a login component or an error page component
Just spend last few days with HOC and I understand your point now. Thank you John
I'm happy you understand it now.. Cheers
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I just can't understand HOC. We can use custom components for reusable code and logic, can't we?
Sorry for the late response. Yes, but most times I actually use HOCs for determining which components should be rendered. Like choosing when to render a login component or an error page component
Just spend last few days with HOC and I understand your point now. Thank you John
I'm happy you understand it now.. Cheers