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

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

Description

@venil7

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions