react-is-mounted-hook icon indicating copy to clipboard operation
react-is-mounted-hook copied to clipboard

chore: Support React 18

Open eric-parsons opened this issue 3 years ago • 1 comments

Hi,

This PR adds support for React 18. Currently, the peer dependency versions for react and react-dom only support up to 17, causing npm warnings or errors in projects that use React 18.

The @testing-library/react-hooks library does not support React 18, but its renderHook functionality was moved into the core @testing-library/react package, so I just changed the tests to use that instead.

I also took the liberty of bumping all other dev dependencies to latest versions.

eric-parsons avatar Jan 17 '23 17:01 eric-parsons

Hi @hupe1980, I noticed that I don't have the ability to invite anyone to review this PR, so thought I'd ping you to see if you're interested in these changes and if so, if you'd be willing to review.

eric-parsons avatar Jan 24 '23 21:01 eric-parsons