react-powerplug icon indicating copy to clipboard operation
react-powerplug copied to clipboard

[Feature Request] React hooks support.

Open rockmandash opened this issue 7 years ago • 4 comments

react-powerplug is the best repo to start supporting react hooks.

rockmandash avatar Oct 27 '18 18:10 rockmandash

I think we may start with mirroring already perfected api and then look at new possibilities.

TrySound avatar Oct 27 '18 18:10 TrySound

Thinking of opening a PR with the implementations in react-powerhooks

  1. Add a folder called hooks in src. Corresponding tests will be in tests/hooks.
  2. Add flow types. Need help with ts types.
  3. Documentation is a bit unclear to me.

pksjce avatar Oct 29 '18 12:10 pksjce

Hey @pksjce, why documentaton is unclear to you? I would like to understand the difficulties in order to improve it. Anyway, I can help you to understand too.

I can help with ts types if needed.

renatorib avatar Nov 06 '18 19:11 renatorib

I refactored half of codebase with hooks, and it's more convenient than render props I used to write local state with react-powerplug, right now I don't know, is there any reason to still use it

egoarka avatar Nov 11 '18 19:11 egoarka