Writing purely functional stateful components without hooks

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/reactjs

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • react-makestateful

    MakeStateful Its an "HOC" allows you to write functional components with ALL the functionalities of class Components without using hooks.

    YOU can do composability with this package too. Actually that was one of the 2 main reasons why I wrote it. I was working on a project and I finally had a case where I needed to reuse logic. Checkout this section: https://github.com/Pensarfeo/react-makestateful#isolating-logic. This is in the example of usage too.

  • recompose

    A React utility belt for function components and higher-order components.

    I might look like an asshole, but that also can save you time on future work: recompose includes withState and many other HOCs

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts