recompose icon indicating copy to clipboard operation
recompose copied to clipboard

Question: how to convert hoc to hooks

Open xiaoxiangmoe opened this issue 7 years ago • 3 comments

(:з」∠) some hoc hijack rendering,like branch

xiaoxiangmoe avatar Dec 17 '18 18:12 xiaoxiangmoe

I don't think this question will have a short answer, but on should hope! 😄

dogancana avatar Dec 18 '18 08:12 dogancana

@xiaoxiangmoe maybe https://github.com/Synvox/rehook can be useful for you

Fer0x avatar Jan 03 '19 14:01 Fer0x

React Hook is quite different to React lifecycle which is usually used in HOCs, so there is no trivial way to convert a HOC to a hook. And, beacuse hooks live in functional components, they can not hijack rendering like branch().

wuct avatar Jan 27 '19 06:01 wuct