chore: Support React 18
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.
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.