testing-library-docs
testing-library-docs copied to clipboard
Migrate React recipes to hooks
Is your feature request related to a problem? Please describe. Function components with hooks are now officially recommended over class components by React.
Describe the solution you'd like
Replace old patterns like connect
, withRouter
, other HoCs, and class components with hooks.
- [ ] Codesandbox Examples
- [x] Input Event
- [x] Update Props
- [x] React Redux fixed in #588
- [x] React Router
- [x] React Transition Group fixed in #658
Additional context Related to #570 (overall discussion on docs)
@MatanBobi here's the meta issue for my previous comment
Hi @nickmccurdy
I would be happy to work on it. but I might need some help along the way. If you wish, you can assign it to me
@m98 I'm taking care of React Redux but you can start the others if you'd like. Let me know what you plan on doing and if you'd like help.
Thank you @nickmccurdy Sure, for now, would be glad to work on at least the first three items you introduced.
Then if I got time again, I would do the rest
Hi, If it's still available, I can help migrating React Transition Group docs.
@ozgunbal As far as I'm aware it is still available. Thanks!
Hi @nickmccurdy I'd like to help with it. It seems that some items on this list have already been done (Input Event, Update Props, React Router), right? If yes, we could mark them. I see that Codesandbox Examples has some files with class components. So, i'd like to help with it.
@m98 Did you want to finish the Codesandbox Examples or is it okay if @lidoravitan picks up the work?
@nickmccurdy I've been quite busy these months. Yes, I would be happy if @lidoravitan can work on that Thanks you
@m98 @nickmccurdy thanks i'll start with it
I think the only open thing left is to update the codesandbox examples. If anyone still wants to take it, this is open :)
@MatanBobi still open?
Hi @lidoravitan :) Nope, looks like everything was done here, I'm closing, thanks!