Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to react 18 #940

Closed
mod7ex opened this issue Dec 31, 2022 · 2 comments
Closed

Migration to react 18 #940

mod7ex opened this issue Dec 31, 2022 · 2 comments
Labels
question Further information is requested

Comments

@mod7ex
Copy link

mod7ex commented Dec 31, 2022

when working with the library in a react 18 project i keep getting this warnings in the console

Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

I just want to know if it (react 18) will be supported in the future in next versions

@mod7ex mod7ex added the question Further information is requested label Dec 31, 2022
@victorheringer
Copy link

victorheringer commented Dec 31, 2022

Looks like this lib is been deprecated due to the merge with testing-library, but there is a PR to make it compatible with react 18, either way I guess the way is just migrate to react-testing-library renderHook, and this migration guide may help https://github.com/testing-library/react-hooks-testing-library/blob/chore/migration-guide/MIGRATION_GUIDE.md

@MPSSreekar
Copy link

when working with the library in a React 18 project i keep getting these warnings in the console

What changes should be done to render is not working after upgrading to React 18.

return render(

<Route path="/:page/page/*" element={} />
,
{ wrapper: WrapperWithRouter, ...options }
);

Do you know how I can change this?

Your help is much appreciated 

I appreciate any help you can provide. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants