testing-library-docs icon indicating copy to clipboard operation
testing-library-docs copied to clipboard

Migrate React recipes to hooks

Open nickmccurdy opened this issue 3 years ago • 11 comments

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.

Additional context Related to #570 (overall discussion on docs)

nickmccurdy avatar Sep 01 '20 19:09 nickmccurdy

@MatanBobi here's the meta issue for my previous comment

nickmccurdy avatar Sep 01 '20 19:09 nickmccurdy

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 avatar Sep 02 '20 18:09 m98

@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.

nickmccurdy avatar Sep 06 '20 23:09 nickmccurdy

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

m98 avatar Sep 07 '20 01:09 m98

Hi, If it's still available, I can help migrating React Transition Group docs.

ozgunbal avatar Oct 28 '20 12:10 ozgunbal

@ozgunbal As far as I'm aware it is still available. Thanks!

nickmccurdy avatar Oct 29 '20 09:10 nickmccurdy

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.

lidoravitan avatar Nov 01 '20 20:11 lidoravitan

@m98 Did you want to finish the Codesandbox Examples or is it okay if @lidoravitan picks up the work?

nickmccurdy avatar Nov 03 '20 03:11 nickmccurdy

@nickmccurdy I've been quite busy these months. Yes, I would be happy if @lidoravitan can work on that Thanks you

m98 avatar Nov 04 '20 08:11 m98

@m98 @nickmccurdy thanks i'll start with it

lidoravitan avatar Nov 09 '20 09:11 lidoravitan

I think the only open thing left is to update the codesandbox examples. If anyone still wants to take it, this is open :)

MatanBobi avatar Jun 23 '22 08:06 MatanBobi

@MatanBobi still open?

lidoravitan avatar May 17 '23 11:05 lidoravitan

Hi @lidoravitan :) Nope, looks like everything was done here, I'm closing, thanks!

MatanBobi avatar May 18 '23 05:05 MatanBobi