Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Suggest alternative to branch(), renderComponent(), renderNothing(), compose(), etc #828

Open
venil7 opened this issue Mar 1, 2021 · 0 comments

Comments

@venil7
Copy link

venil7 commented Mar 1, 2021

So the author @acdlite of this wonderful library suggests that it has now been made deprecated, and does not recommend it to be used in any new projects. Main reason - similar functionality exists in React Hooks.
And if for many HOCs in this library this is the case, useState, useReducer,useContext, etc - I don't think hooks fully replace branching/composition HOCs like branch, renderComponent and compose. Hooks are not full replacements for HOCs, and vice versa. And as far as I know HOCs are not considered harmful.

I'm looking for alternative library that implements similar branching/composing HOCs or a statement from authors that it is still safe to add this dependency to new projects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant