react-shallow-renderer icon indicating copy to clipboard operation
react-shallow-renderer copied to clipboard

React 18 support

Open zpao opened this issue 4 years ago • 7 comments

In my very very limited use, it doesn't appear to be a problem to just be using React 18 so far, but it would be good to explicitly add 18 to peerDeps if compatible. This would just silence the install time warning.

zpao avatar Mar 30 '22 18:03 zpao

Sure! Would you like the package version to be bumped to 18.0.0 as well?

NMinhNguyen avatar Mar 31 '22 06:03 NMinhNguyen

I don't work on react anymore and can't speak for the team, but perhaps @gaearon has an opinion?

zpao avatar Mar 31 '22 07:03 zpao

We didn’t bump it to 17 so maybe let’s not bump to 18 either? So that it doesn’t seem like it’s part of the release or encouraged for use.

We should probably shim the new Hooks though before the bump (to 16.15 or something). There aren’t that many and implementations should be simple.

gaearon avatar Mar 31 '22 08:03 gaearon

We should probably shim the new Hooks though before the bump (to 16.15 or something). There aren’t that many and implementations should be simple.

Could you elaborate on what's required here? But I think you should still have npm and GitHub access so feel free to make the necessary changes yourself

NMinhNguyen avatar Mar 31 '22 10:03 NMinhNguyen

I mean providing some shims for useId etc.

gaearon avatar Mar 31 '22 11:03 gaearon

Please provide plans to verify merge request above.

it's annoying see every time this picture.

image

vharadkou avatar Apr 06 '22 11:04 vharadkou

Fixed in [email protected].

gaearon avatar Apr 06 '22 17:04 gaearon