react-use-promise
react-universal-hooks
react-use-promise | react-universal-hooks | |
---|---|---|
2 | 1 | |
91 | 186 | |
- | - | |
3.1 | 0.0 | |
4 months ago | over 1 year ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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
-
Electron Adventures: Episode 22: File Manager in React
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
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-universal-hooks
-
Why hooks are the best thing to happen to React
I don’t really understand the authors reasoning either. Classes in JavaScript are just sugar around functional closures.
In fact, you can use hooks inside of React component subclasses with a little fiddling [1].
The fact that the official react doesn’t support it is basically a design decision. It’s not impossible, but they just want to draw a clear line in the sand about how they think React code should be written.
1. https://www.npmjs.com/package/react-universal-hooks
What are some alternatives?
use-redux-form - React hook for form fields that using Redux store
react-find - Elegant, accessible search component for React.
loadio - Simply provides a pool and wrapper to manage the promises that generate loading status and percentage information based on the execution of tasks
react-inlinesvg - An SVG loader component for ReactJS
react-hook-thunk-reducer - 📡 A React useReducer() hook whose dispatcher supports thunks à la redux-thunk.
react-godfather - "Look ma, no Hooks!"
react-use-form-state - 📄 React hook for managing forms and inputs state
redux-search - Redux bindings for client-side search
use-modal-hook - 🚀 React hook for controlling modal components
tcomb-react - Alternative syntax for PropTypes
use-force-update - React Hook to force your function component to update
redux-auth-patch - Complete token authentication system for react + redux that supports isomorphic rendering.