HOC replacement hooks are not exported
See original GitHub issueIt seems useAsync
, useCreatable
and useStateManager
are not exported at the moment while in the upgrade guide they are advertised as replacements for the preciously exported HOCs.
Can these exports be added?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Do React Hooks Replace Higher Order Components (HOCs)?
It can get confusing to understand where props are coming from vs directly importing the behavior you depend on in the components that...
Read more >Why React Hooks over HOCs - Robin Wieruch
export default withError; Note how the HOC passes all the props to the given component if there is no error. Everything should be...
Read more >Unable to use hook in HOC for functional component
For starters, hooks are meant to be a replacement for HOC. However, you can definitely use hooks in a HOC which is a...
Read more >Replacing redux HOCs with hooks - DEV Community
A simple component which uses redux's connect HOC to provide <App /> component with getUsers , resetUsers and users prop. Let's see how...
Read more >HOCs vs Hooks. What to use and why? - Devcore
Since then, an extensive discussion has arisen about whether or not hooks will replace common React patterns.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Akridian I’m happy to report that the PR for this was approved and has been merged and released as a part of v5.2.1
I appreciate your attention.