react-use-promise VS react-hook-thunk-reducer

Compare react-use-promise vs react-hook-thunk-reducer and see what are their differences.

react-hook-thunk-reducer

📡 A React useReducer() hook whose dispatcher supports thunks à la redux-thunk. (by nathanbuchar)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
react-use-promise react-hook-thunk-reducer
2 1
91 108
- -
3.1 2.6
4 months ago almost 2 years ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

react-use-promise

Posts with mentions or reviews of react-use-promise. We have used some of these posts to build our list of alternatives and similar projects.
  • Electron Adventures: Episode 22: File Manager in React
    1 project | dev.to | 14 Aug 2021
    I'll follow steps from episode 14, and create a new React electron app. We'll need one extra library react-use-promise as we'll be making extensive use of promises in this project, and using bare useEffect for them gets rather awkward.
  • Electron Adventures: Episode 21: File Manager
    1 project | dev.to | 13 Aug 2021
    If you're coming from React background, it would take a few useEffect and usePromise calls that we don't need to do, as Svelte figures it all out. Or we could move a lot of that logic to a store or custom hook, or such, but Svelte is expressive enough that a regular component will do just fine, at least for now.

react-hook-thunk-reducer

Posts with mentions or reviews of react-hook-thunk-reducer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-19.
  • I created an article on how to choose the right state management solution for your next React project.
    7 projects | /r/reactjs | 19 Feb 2021
    I've been playing around with useReducer and useContext and it was trivially easy to implement a functional action/reducer system that worked just like redux but glued together with react built-ins. I'm also not sure what the difference between a custom hook and a middleware is, they seem like the same thing to me. Custom hooks are easy to implement, for example here's the equivalent to a thunk "middleware": https://github.com/nathanbuchar/react-hook-thunk-reducer/blob/master/src/thunk-reducer.js. You can keep wrapping your reducer in as many custom hooks as you like to handle whatever side-effects you need, just like you can with redux middleware.

What are some alternatives?

When comparing react-use-promise and react-hook-thunk-reducer you can also consider the following projects:

use-redux-form - React hook for form fields that using Redux store

rtk-query - Data fetching and caching addon for Redux Toolkit

loadio - Simply provides a pool and wrapper to manage the promises that generate loading status and percentage information based on the execution of tasks

Recoil - Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.

react-use-form-state - 📄 React hook for managing forms and inputs state

react-transition-state - Zero dependency React transition state machine

use-modal-hook - 🚀 React hook for controlling modal components

react-final-form - 🏁 High performance subscription-based form state management for React

use-force-update - React Hook to force your function component to update

react-universal-hooks - :tada: React Universal Hooks : just use****** everywhere (Functional or Class Component). Support React DevTools!

react-hook-layout - Layouts in React.